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

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

    To supplement @user2744787's answer, here is a screenshot to show how to use cmd with arguments in a Scheduled Task:

    Program/script: cmd

    Add arguments: /c run_with_default_port.bat > IMQuantWebServices.log

提交回复
热议问题