I would like to capture the output of a script with options which is triggered by windows scheduler. I found an stackoverflow post At:
How do I capture the output of a script if it is being ran by the task scheduler? the suggestion is to use the following. cmd /c yourscript.cmd > logall.txt
I am not sure how to use this as in scheduler I have the following set up:
Program/script: C:\Ruby193\bin\ruby.exe
add argument: .\download_xml.rb --instance=SERVER-SQL
Start in: C:\Download_Reports\
Thanks