Question Locked

Batch file to copy files

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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.

4 replies

by bart777

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.

This discussion is closed to new replies.