Windows Thread, copy folder to list of computers in Technical; Hi I am trying to copy a folder from a network share to a list of computers to c:\
11th October 2013, 10:36 AM #1
- Rep Power
copy folder to list of computers
Hi I am trying to copy a folder from a network share to a list of computers to c:\
I have tried the code below just cant get it to work. Does anybody have a script
for /F %%a in ("%List%") do robocopy "%Source%" "\\%%a\%arget%"
11th October 2013, 11:10 AM #2
Just change your target to C$\ and you've missed the T in Target when doing the robocopy.
You might also want to look into using the /R and /W options in robocopy
If you leave them set as default you will be waiting a while if the computer you are copying to is turned off.
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
11th October 2013, 11:17 AM #3
Or do it with group policy preferences, a security group and item level targeting.
15th October 2013, 10:15 AM #4
- Rep Power
Thanks for you reply. I still cant get the .bat to run. Does anybody know what I am doing wrong?
set Source=\\domainname\NETLOGON\Desktop Shortcuts\test.lnk\
for /F %%a in ("%List%") do robocopy "%Source%" "\\%%a\%Target%"
15th October 2013, 10:26 AM #5
be easie to deploy it as a startup script
also you have a \ after test.lnk
copy "\\domainname\NETLOGON\Desktop Shortcuts\test.lnk" "C:\Users\Public\Desktop\test.lnk" /y
Last Post: 25th April 2013, 04:10 PM
By Miscbrah in forum How do you do....it?
Last Post: 30th January 2012, 03:03 PM
By Rob414 in forum Scripts
Last Post: 3rd November 2011, 06:51 PM
By benIT in forum Scripts
Last Post: 21st May 2010, 09:11 AM
By TechSupp in forum Windows
Last Post: 15th May 2009, 04:51 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)