开发者

Windows 2008 Task Scheduler Problem

开发者 https://www.devze.com 2022-12-14 13:53 出处:网络
I\'ve created simple .NET 2.0 Console application. Reads DB, sends emails and writes result to subfolder named \"logs\" as a .TXT file.

I've created simple .NET 2.0 Console application. Reads DB, sends emails and writes result to subfolder named "logs" as a .TXT file.

Application works when i run it manually. But task开发者_运维知识库 scheduler can not able to run it.

When i looked the history i saw "Task Scheduler successfully finished "{46794881-039f-4c37-8c5b-af70def503ce}" instance of the "\testtask" task for user "xxx\Administrator"."

And the last run result is "(0x1)"

What does it mean and how can i make this run?

thanks in advance...

OKB


0x1 is likely to be the ERRORLEVEL that your process returned. Try invoking the command manually (ideally as the user who will be running the task). Remember it won't run as full administrator unless you tick the 'full access' checkbox.

Is it trying to touch files in a shared location that are owned by another user - if so change the file permissions.

The best way of figuring out what's really going wrong is to download procmon and find out rather than starting a guessing session.

0

精彩评论

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

关注公众号