Discussion Locked

Copy files to multiple computers

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to be able to copy a file(s) from one computer to several computers at the same time all if which are on the network and the same domain.

2 replies

by chris

This may not be exactly what you are looking for, but I perform this function on a regular basis. I use a text file that has all the server names that should get the file. I then use the FOR command to perform an action (example: copy a file) for all these servers.

Below is an example - you may need to modify it a little for your use. If you never used it - look into the FOR command, it is very useful.

Below is an example of the file and the command line to use.

File SERVERLIST.TXT
ServerName1
ServerName2
ServerName3

Command Line:
for /F %I in (SERVERLIST.TXT) do @xcopy c:\sourcefile.txt \\%I\c$\destination\

by ghstinshll

Or from a batch file, have it copy the stuff to the location...

Create a text file with the DOS copy command for the files you need,save it with a .bat extension, and then have the batch file do it for you.

This discussion is closed to new replies.