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

前端 未结 9 801
旧巷少年郎
旧巷少年郎 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

    You can have a debug.cmd that calls yourscript.cmd

    yourscript.cmd > logall.txt
    

    you schedule debug.cmd instead of yourscript.cmd

提交回复
热议问题