Terminate Batch Job Y\N
Posted: 04 Mar 2013 15:01
I have the following code
set inputfile=c:\hostnames.txt
set psexecdir=c:\pstools\psexec.exe
set outputfile=c:\output.log
for /f %%i in (%inputfile%) do %psexecdir% -i 0 -s -accepteula \\%%i cmd.exe /c "\\server\program.exe -f -v" >> %outputfile% 2>&1
After each computer in hostnames.txt before it moves onto the next computer i get a "Terminate Batch Job Y\N". This is very annoying. Is there a way to prevent the Terminate Batch Job from coming up and just continue down my computer list?
set inputfile=c:\hostnames.txt
set psexecdir=c:\pstools\psexec.exe
set outputfile=c:\output.log
for /f %%i in (%inputfile%) do %psexecdir% -i 0 -s -accepteula \\%%i cmd.exe /c "\\server\program.exe -f -v" >> %outputfile% 2>&1
After each computer in hostnames.txt before it moves onto the next computer i get a "Terminate Batch Job Y\N". This is very annoying. Is there a way to prevent the Terminate Batch Job from coming up and just continue down my computer list?