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
Post a Comment