File not found using Task Scheduler

后端 未结 4 1311
甜味超标
甜味超标 2020-12-30 10:59

In my C# code, I reference to an XML file \"file.xml\", which is in the same directory as the executable itself, using XmlDocument.

4条回答
  •  被撕碎了的回忆
    2020-12-30 11:15

    Try to set startup directory for the task. You can set in Task Scheduler.

    Select Task -> Right Click -> Properties -> Actions Tab -> Select Action -> Edit -> Start in (optional)

提交回复
热议问题