|What I am trying to get done is to run a MS update on several workstations on a Domain. Now this is my first batch file thats this complex. |
Now I create a another file called serverot.txt with computer mappings like this
When run the batch file a get this error message
delims was unexpected at this time.
C:\Remote installs>for /f usebackq delims == "%I in ("serverot.txt) do Call :beg
The file I am trying to create is below.
for /f usebackq delims == "%%I in ("serverot.txt) do Call :begin %%I
robocopy \\servername\remote installs\test \\%srv%\c$\temp\ /xf MTenav_*.* /r:0 /w:0
psexec \\%srv% -w "cmd.exe /c c:\temp\install_enav\test /silent
Thanks for your help