Page 1 of 1

Terminate Batch Job Y\N

Posted: 04 Mar 2013 15:01
by gymiv
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?

Re: Terminate Batch Job Y\N

Posted: 04 Mar 2013 15:10
by Squashman
I would assume it is because of the -i option. Why do you need it to interact?
Did you try using the -d option?

Re: Terminate Batch Job Y\N

Posted: 04 Mar 2013 15:28
by gymiv
I thought i needed that for PSEXEC. Do i not need it?