Is it possible to show the command prompt window when launching a batch file from the task scheduler?

batch-file

Solution

If you are trying to capture output, I like to dump to a log file. Put this as your program to execute in Task Scheduler:

myscript.bat >> error.log

If you REALLY want it to stay open, you could do -

cmd /k myscript.bat

Problem

As my title states, I am wondering if it is possible to show the command prompt window (at least temporarily) to ensure that my batch file is indeed being executed as scheduled. The batch file runs without errors when I run it manually. The batch file resides on Windows Server 2008 R2 Standard, x64 and I have service pack 1 installed. Let me know if more info required. Thanks much!

Original source