script or batch move files from multiple sub directories to parent [duplicate]
Took me like 3 seconds to Google this:
http://www.computerhope.com/xcopyhlp.htm
You would write your .bat
file like this:
xcopy f:\Pictures\100KC1 f:\Pictures /y /e
xcopy f:\Pictures\100KG2 f:\Pictures /y /e
xcopy f:\Pictures\100LF1 f:\Pictures /y /e
exit
This will also copy any directories in your source directories to your destination directory.
If you want to use the command line just use &&
between each xcopy
statement like this:
xcopy f:\Pictures\100KC1 f:\Pictures /y /e && xcopy f:\Pictures\100KG2 f:\Pictures /y /e && xcopy f:\Pictures\100LF1 f:\Pictures /y /e
Results will be the same.