/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


Single file copy to same directory on multiple machines - XP

03/10/2008 11194 views

Hi.

I'd like to use any copy command (PSexec, Robocopy, copy, xcopy) to copy a SINGLE file to the same location on MULTIPLE machines using XP.

e.g.
xCopy TEST.txt \\MACHINE1\C:\MyDir
xCopy TEST.txt \\MACHINE2\C:\MyDir
xCopy TEST.txt \\MACHINE3\C:\MyDir
Cxopy TEST.txt \\MACHINE4\C:\MyDir

Anyone have a sample batch file or utility to do this?

cheers
0 Comments   [ + ] Show comments

Comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

0
Here are a few suggestions. One is to use excel to create the batch file contents for you. If you know what the command needs to look like, as in your example, only the machine name needs to change. I would personally use robocopy but anything should work for a small single file copy. Also, you will need to use \\MachineName\C$ instead of C:\ to access the C: remotely.

Here is how to create this in Excel:
  1. Open a new Excel doc
  2. In Column A paste the list of machines
  3. In Colum B select the first cell
  4. Insert this function at the top:="xCopy TEST.txt \\" & A1 & "\C$\MyDir"
  5. Hit enter to save the function
  6. With the first cell in column B selected, hover over the drag\copy handle at the bottom right corner (cursor should become a plus sign) all the way down to where you list in column A stops.
  7. For each line the function for A1 should change to A2, A3 etc and insert the appropriate machine name
  8. Paste column B contents into a batch file

Also you can get more fancy and do all of this through a Wise Script or VBScript where you just feed it a list of systems and it runs in a loop hitting each machine. But this is the simple way.

Also, if you are looking for remotely deploying software I would suggest the Remote Software Installation Utility. The whole suite of Install Solutions tools are exceptional for systems management. I am the author so a little biased but check it out.
Answered 03/12/2008 by: yarborg
Blue Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ