Using Windows Server 2008, how do I go about capturing the output of a script that is being ran with the windows task scheduler?
I\'m testing a rather long custom pr
The >> will append the log file, rather than overwriting it each time. The 2>&1 will also send errors to your log file.
>>
2>&1
cmd /c YourProgram.exe >> log.txt 2>&1