简体   繁体   中英

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

ERROR:

**

Task Scheduler successfully completed task "\\Open_items" , instance "{2f836ec9-04aa-4169-a364-33a2ac4fc9e4}" , action "C:\\Windows\\SYSTEM32\\cmd.exe" with return code 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

Hope to hear on this, soon.

Error Code 255 means 'The Extended Attributes are inconsistent' . Check the URL and the other parameters before invoking the cmd.exe. Check if 'Open_items' is a directory if that exists etc.

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

'%myHour%' == ' '

this was causing the issue.

"%myHour%" == " " ..This however works fine now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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