I want to redirect the statements it puts on the console into a file in windows batch code. I am using the net stop command to stop a service.
When I do this:
net stop SPTimerV4 2>> mylog.log
it appends error text into the file. But it still prints the regular text on the console:
The SharePoint 2010 Timer service is stopping.
The SharePoint 2010 Timer service was stopped successfully.
How can I even redirect this to a file?
Thanks