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

前端 未结 9 845
旧巷少年郎
旧巷少年郎 2020-12-02 08:37

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

9条回答
  •  不知归路
    2020-12-02 09:25

    With stderr (where most of the errors go to):

    cmd /c yourscript.cmd > logall.txt 2>&1
    

提交回复
热议问题