Questions

Batch file to copy files

+
0 Votes
Locked

Batch file to copy files

Lula.mesfin
Some body help me to create batch file which can copy files from a folder one by one into many folders. For example if one folder has 10 files then I have to copy those files (one in each) in each subdirectory of a given directory.
+
0 Votes
NotSoChiGuy
Collapse -
+
0 Votes
bart777
Collapse -

Just create a batch file with a copy command for each location.

copy c:\folder\*.* \\server\share\

If you need to you can add switches to assist with the copy. The switches will help you autorespond to overwrite commands and such.

If you need to maintain security on the files you will want to use the Xcopy command with a set of switches. the syntax is the same either way.

Best of luck.