Copy multiple files to new folder and keep the folders str..
Posted: 08 Feb 2012 02:52
Is there is a way to copy multiple files from different sub folders to a new folder but to copy them into new folders with same names.
The script(has to work regardless of where the files are because I often rename the folder in which are the files.
For example,enter the folder where the files are(in sub folders),execute the code and copy the files into new folder in the the main folder
The root folder should be called for example root(the name does not matter because I change it from time to time.
root\1\file1.txt
root\file2.txt
root\1\2\3\file3.txt
and copy those files info
"root\new folder" and place them like this
root\new folder\1\file1.txt
root\new folder\file2.txt
root\new folder\1\2\3\file2.txt
I hope my explanation is god enough.
Also if XYP support some kind of compare\sync(by date\size or anything),is it possible when I compare two folder and if there is differences to copy the newer files to a new folder and again keep the folders structure.
The script(has to work regardless of where the files are because I often rename the folder in which are the files.
For example,enter the folder where the files are(in sub folders),execute the code and copy the files into new folder in the the main folder
The root folder should be called for example root(the name does not matter because I change it from time to time.
root\1\file1.txt
root\file2.txt
root\1\2\3\file3.txt
and copy those files info
"root\new folder" and place them like this
root\new folder\1\file1.txt
root\new folder\file2.txt
root\new folder\1\2\3\file2.txt
I hope my explanation is god enough.
Also if XYP support some kind of compare\sync(by date\size or anything),is it possible when I compare two folder and if there is differences to copy the newer files to a new folder and again keep the folders structure.