I am trying to use robocopy to update some internal AV clients that are not working. They will update once I the files are copied manually in.
I've tried the following robocopy script, but can't get it to execute.
for /f "usebackq tokens=*" %%T in ("serverlist.txt") do (robocopy C:\.. \\%%T\C$\.... /s /e >> script.txt)
Edit.
Turns out this was a valid script I had called the file robocopy.bat and I was getting the error process already in use, I renamed the file and it worked.
for
command is running correctly by running it through anecho %%T
command and make sure it is listing your server names as you would expect. Is it giving you an error message?