Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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
\\computername
\\computernameWhen 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
in %IThe file I am trying to create is below.
@echo off
for /f usebackq delims == "%%I in ("serverot.txt) do Call :begin %%I
goto :EOF
:begin
set srv=%1
:get info
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 /silentThanks for your help
Tommyboy78

Simple the delimiter is not I (eye) it is 1 (One) I think this is where the solution maybe. It is easy to over see this.
C:\Remote installs>for /f usebackq delims == "%1 in ("serverot.txt) do Call :beg
in %1The file I am trying to create is below.
@echo off
for /f usebackq delims == "%%1 in ("serverot.txt) do Call :begin %%1

![]() |
Ethernet softwarec connec...
|
white line across the bot...
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |