1.

Solve : Creating a batch file that copies sub-folders?

Answer»

I have a batch file that reads
Copy TEMPORARY\%1  Directory 1
Copy temporary\%1  Directory 2
and so on
for 65 directories (!)

What this does is to take ALL the FILES in the folder called temporary and copy them to Directory 1 and to Directory 2 and so on.

Now, the complication is that the folder called temporary has a subdirectory called Documents with 20-25 files in it.
I wiuld like to know what the syntax is for
a) MD New Directory in Directory 1 and in 2 and so on
b) copy the 20-25 files into it
and - hopefully - all that with ONE command.

Any ideas?



Thanks!




I would go with XCOPY or ROBOCOPY, in your batch file. QUOTE from: Mute on October 19, 2010, 12:03:26 AM

I would go with XCOPY or ROBOCOPY, in your batch file.

http://www.mydigitallife.info/2007/05/07/robocopy-syntax-command-line-switches-and-examples/

Ducks that fly upside down quake up.


Discussion

No Comment Found