简体   繁体   English

计划的任务在夜间的特定时间不运行

[英]Scheduled tasks does not run during certain time in the night

One of the Scheduled tasks fails from 11:30 PM in the night to 8:00 AM in the morning, after which everything seems to work fine 预定任务之一从晚上11:30 PM到早晨8:00 AM失败,此后一切似乎正常

ERROR: 错误:

** **

Task Scheduler successfully completed task "\\Open_items" , instance "{2f836ec9-04aa-4169-a364-33a2ac4fc9e4}" , action "C:\\Windows\\SYSTEM32\\cmd.exe" with return code 255. 任务计划程序成功完成了任务“ \\ Open_items”(实例“ {2f836ec9-04aa-4169-a364-33a2ac4fc9e4}”),操作“ C:\\ Windows \\ SYSTEM32 \\ cmd.exe”,返回码为255。

** **

The task is scheduled to "Run whether user is logged in or not", i can't find out whats causing the problem 该任务计划为“无论用户是否登录都运行”,我无法找出导致问题的原因

The task runs a java program--> this in turn calls a batch file which uses CURL 该任务运行一个Java程序->依次调用使用CURL的批处理文件

Hope to hear on this, soon. 希望很快能听到。

Error Code 255 means 'The Extended Attributes are inconsistent' . 错误代码255表示“扩展属性不一致” Check the URL and the other parameters before invoking the cmd.exe. 在调用cmd.exe之前,请检查URL和其他参数。 Check if 'Open_items' is a directory if that exists etc. 检查“ Open_items”是否为目录,如果存在等。

Thanks for your replies, I was able to fix the error, it was with one of my batch files. 感谢您的答复,我能够修复错误,原因是我的批处理文件之一。

I was trying to compare the first digit of the hour(HH) in my batch file to a blank space 我正在尝试将批处理文件中的小时的第一位(HH)与空白进行比较

'%myHour%' == ' ' '%myHour%'==''

this was causing the issue. 这是造成问题的原因。

"%myHour%" == " " ..This however works fine now “%myHour%” ==“” ..现在可以正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM