任务计划程序出现问题

任务计划程序出现问题

问题描述:


我在Windows Server 2008的任务计划程序中添加了一个exe.当我在计划的时间自动运行时,出现以下错误

Hi,
I add a exe in my Task Scheduler of Windows Server 2008. when i runs automatically on the scheduled time it give me the below error

Stopped working
Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: bulkemailsendingwindowapp.exe
  Problem Signature 02: 1.0.0.0
  Problem Signature 03: 4e116232
  Problem Signature 04: System.Windows.Forms
  Problem Signature 05: 2.0.0.0
  Problem Signature 06: 49cc5f77
  Problem Signature 07: 1521
  Problem Signature 08: 137
  Problem Signature 09: System.IO.DirectoryNotFound
  OS Version:   6.0.6002.2.2.0.274.10
  Locale ID:    1033
Read our privacy statement:
  http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409




如果我通过双击触发该exe,它就可以正常工作.

需要帮助.




And if I trigger the exe by double click it works fine.

Help required.

显然不喜欢发送垃圾邮件...
It clearly doesn''t like sending spam...


嗨 此错误清楚地表明它找不到您要执行操作的目录.
因此,请强制创建目录.
并检查是否存在.

希望对您有帮助.

一切顺利
hi this error clearly show that it not find the directory where you want to do something.
so create directory forcefully.
and check if is it exist or not.

i hope this will help you.

all the best


似乎很明显是System.IO.DirectoryNotFound错误.如何管理您在应用程序内部读取/写入的文件的路径?
Seems quite clear error System.IO.DirectoryNotFound. How do you manage the paths of files that you are reading/writing inside app?