开发者

scheduled task run .exe problem

I have a c# console app that writes some text to a txt file when runs. I have added it in scheduled task. the task runs without error on a scheduled time... but the console window dose neither pop up nor any text in the destination file!

any idea where is the problem? 开发者_开发技巧I'm on windows server 2008 r2.


The console does not show because the scheduled task does not run as an interactive user. Text is not written in the dest file because probably it is not accessible by the user running the scehduled task ( maybe is some mounted remote disk ? ). If your c# app is written by your own, try to put some more log to understand what happens.


The console does not show if you selected "Run whether user is logged on or not". If you set it "Run only when user is logged on" it will popup and run in interactive mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜