Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Copy file(s) to multiple computers  (Read 3227 times)

0 Members and 1 Guest are viewing this topic.

Jonathan

  • Guest
Copy file(s) to multiple computers
« on: October 07, 2004, 04:25:48 AM »
I need to copy files to various computers and would like to do it as automatically as possible. Instead of copying the files to each computer individually, IŽd like to use a batch file that takes care of this with just one click.

Is it possible to write one command line and use a variable that is replaced as many times as there are computers? How could this variable be replaced automatically by the different computernames?

MalikTous

  • Guest
Re: Copy file(s) to multiple computers
« Reply #1 on: October 09, 2004, 05:37:17 PM »
If the computers are all known clients, you could use a For-in-Do loop with the machine names listed as parameters. If not all machines are on at backup time, use an IF EXIST call to the nul: in each system's root directory to allow ignoring machines not on.