I am using Windows 2008 R2,
and I am trying to schedule my application in the Task Scheduler. I have created a batch with the right settings.

The problem I have is: I need to display the Cmd shell window (with the bat running), but the task scheduler launches the application in the background and the Cmd window is no where to seen.

I tried different things from the task scheduler:
- cmd /c start ...MyProgram.bat does not work.
- I tried calling my batch directly does not work. - I also tried a piece of vbs script with winScriptHost.run does not work either.

What did I miss? How can I resolve this?

Please help, Thanks in advance,

link|improve this question
feedback

2 Answers

I don't think the task scheduler GUI gives any way to run an interactive task. But the AT command does appear to. I found this article on technet that describes (among other things) the /interactive switch for the AT command.

link|improve this answer
Thanks for your responses. I will try the AT command. – Alain Nov 3 '11 at 18:41
feedback

A better solution to your problem might be to redirect errors and output to a logfile, and just tail that logfile.

link|improve this answer
I thought about that but my problem is that I can query the app while it is running, so that is why I need the cmd window. – Alain Nov 3 '11 at 17:39
I'm not sure I understand how that makes it a problem. – mfinni Nov 3 '11 at 17:43
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.