How to make log of batch file process

November 28, 2010 at 15:51:48
Specs: Windows XP SP3
I am wanting to make a batch file for logging another batch process.

for /f %%i in (computers.txt) do call :Reboot %%i
shutdown /m \\%1 /r /t 0 /f

I need the log to show the machine it is rebooting and if any errors are given like the device is not found.
I am trying to make a generic way that I can insert the log process where if I run a batch similar to this, I would basically like to log everything that is displayed on the screen.


See More: How to make log of batch file process

Report •

November 28, 2010 at 16:05:32
You might get by with:

shutdown /m \\%1 /r /t 0 /f >> log

If not post output of shutdown /m \\%1 /r /t 0 /f

Life is too important to be taken seriously.


Report •
Related Solutions

Ask Question