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 - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -