Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I capture the output of a script if it is being ran by the task scheduler?

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 printing batch-script, and for debugging purposes, I would like to see all of the output from it every night.

like image 406
Anthony Miller Avatar asked Dec 28 '11 22:12

Anthony Miller


1 Answers

Try this as the command string in Task Scheduler:

cmd /c yourscript.cmd > logall.txt 
like image 104
user2744787 Avatar answered Sep 23 '22 17:09

user2744787