.net application failing when fired via scheduled task

前端 未结 4 1825
失恋的感觉
失恋的感觉 2021-02-04 15:42

I have a .net console application written in c# which does exactly what it should when run inside visual studio and when clicking the .exe file in the file system. It runs like

4条回答
  •  星月不相逢
    2021-02-04 16:38

    Faced with similiar problem, when application normally is worked as expected, but when i run it from the scheduled task, it's immediately closing, and throws an error: "File path not found ...".

    Fixed it with setting scheduled task action parameter:

    Start In (optional): c:\my application\executable folder path

提交回复
热议问题