Scripts Thread, Pipe txt file to ROBOCOPY? in Coding and Web Development; Hi folks,
I’ve had a troll through the posts and can’t find the answer to my robocopy problem.
Basically I ...
-
2nd November 2011, 11:27 AM #1
- Rep Power
- 0
Pipe txt file to ROBOCOPY?
Hi folks,
I’ve had a troll through the posts and can’t find the answer to my robocopy problem.
Basically I have to copy virtual images to many lab computers on campus. I’ve been using a command line:
robocopy "\\servername\imagesfolder$\VMWare\VM Labs 2011-12\c-Drive" "\\targetPC\c$\VMWare" /E /R:3 /W:5
In the “c-Drive” folder on the server I have 3 or 4 VMs, and the script checks the target PC to see if the VM is already there and if not it copies over the missing VM folder. Problem is I have to run the script in a cmd shell, then edit the targetPC name and run the script again in another cmd shell and so on. Very time consuming and can often have 50 or 60 cmd windows open on screen!
Could anyone tell me how I can pipe in a txt file into my command line with the targetPC names in it and the command will read from that txt please? I also need it to be running the copy to the entire list of PCs at the same time. In other words not copy to one PC then move to the next and so on.
Any help gratefully appreciated
Rob
-
-
IDG Tech News
SHARE:
Similar Threads
-
By NETKILLER in forum Scripts
Replies: 8
Last Post: 1st September 2011, 11:18 AM
-
By beeswax in forum General Chat
Replies: 8
Last Post: 2nd February 2010, 10:07 AM
-
By Frazer in forum Scripts
Replies: 19
Last Post: 20th June 2006, 03:53 PM
-
By browolf in forum Scripts
Replies: 1
Last Post: 28th November 2005, 11:28 AM
-
By tosca925 in forum Windows
Replies: 6
Last Post: 20th October 2005, 06:48 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules