K
Kathy Houtami
Hi
I'm just wondering if there is a way to pass 2 variables into the dos
For command. I'm trying to script updating a scheduled job across
multiple servers, so each will have separate start time.
for /F %%i in (NDC.txt Times.txt) do CALL SchTask.bat %%i %%j
"%AdminPass%"
Schtasks /change /s \\%1 /U %1\administrator /P %3 /TN IISLogArchiver /
RU %1\administrator /RP %3 /ST %2 /ENABLE
The above is what I tried to do, but when I ran the script, the %2
didnt pick up the variables stored in second txt file (Times.txt).
Please help
Cheers
Kathy
I'm just wondering if there is a way to pass 2 variables into the dos
For command. I'm trying to script updating a scheduled job across
multiple servers, so each will have separate start time.
for /F %%i in (NDC.txt Times.txt) do CALL SchTask.bat %%i %%j
"%AdminPass%"
Schtasks /change /s \\%1 /U %1\administrator /P %3 /TN IISLogArchiver /
RU %1\administrator /RP %3 /ST %2 /ENABLE
The above is what I tried to do, but when I ran the script, the %2
didnt pick up the variables stored in second txt file (Times.txt).
Please help
Cheers
Kathy