Quantcast
Viewing all articles
Browse latest Browse all 4378

Cobian Reflector • Does "Cancel the task if some event fails" work?

I've been trying to put in a Pre-backup command line event that returns an error to see if I can get a backup task to run or not depending on an external condition. I've tried the following with no luck. Am I doing something wrong?

IF NOT EXIST f:\fffgggt (cmd /c EXIT -51)
IF NOT EXIST f:\fffgggt (EXIT 1)
IF NOT EXIST f:\fffgggt (EXIT /B 5)

And there is no such file. When I run those from a command line and check with %ERRORLEVEL% I can see that the error level has been set as expected.

Ira

Statistics: Posted by ira — 27 Apr 2022, 20:46



Viewing all articles
Browse latest Browse all 4378

Trending Articles