The task status in the windows task schedule -


how set task status failed in task schedule ?

(for example, if batch file scheduled in windows , want set task status 'failed' if batch file execute)

you can edit batch file , use following command "raise error" task scheduler:

%comspec% /c exit 1 

you can let task scheduler handle rest, i.e. send email, etc.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -