|I reboot PCs using shutdown.exe and a .txt file.|
I use the "for /f" command.
The list of PCs to reboot is in a.txt file.
I run the .cmd file from my PC.
The .cmd file reboots all the PCs that are listed in the .txt file.
Now the problem - the .cmd file reboots my PC as well, even though it is not listed in the .txt file - (I'd like to stop this happening).
Can someone please look at the file, (pasted below) & tell me how to stop the .cmd file rebooting my PC ie. the machine where the ,cmd file is processed.
for /f %%i in (RebootPCs.txt) do call :ACTIONS %%i
shutdown.exe -r -f -m \\%1
---- oOo ----
Thanks in advance for your help.
George Kennedy - NIHE.