April 24th, 2013, 02:44 PM
Swapping files with a batch command
I have a batch file that I am trying to simply swap files in one directory with another directory. For example, I have two directories (Test and Test2)...
In my batch file, I wrote
move "H:\Test\*" "H:\Test2\"
move "H:\Test2\*" "H:\Test\"
However, this moves the files in the "Test" directory into the "Test2" directory, then moves all those files from "Test2" to "Test".
Now all files are in "Test"
How can I make it simply swap directories?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!