I have run into a problem all of a sudden. I wish to copy files and directories and I am not able to do that anymore.
I use Copy File() and Copy Directory().
Somehow Copy Directory() doesn't recognize my paths anymore or occasionally fails.
So, I would like to know:
1. How to copy a directory (say D:/copyme) inside another directory (D:/destination) ? So that I have D:/destination/copyme as the final result.
2. How can I copy the contents of a directory (say D:/copyme) inside another directory (D:/destination)?
Everything was working fine but it stopped working and I couldn't copy reliably anymore. I thought the path is longer for windows to handle that's why it doesn't work but it turns out the path is less than 260 characters for each file. The path contains spaces and hyphens beside numbers and letters.
Thanks a lot for your inputs!
Update: Another thing is that if I specify a path as a string, say,
path = "/D:/some_directory/some_other_directory";
and then pick this directory
same_path = Pick Directory();
The two paths visually look exactly the same but on comparison
if( path == same_path, print("same path");, print("not same"); );
I always get "not same". It was working earlier. Why specifying the path as a string not working?
Should your literal character string for the first path start with a slash?
There are no labels assigned to this post.