Quantcast
Channel: CobianSoft
Viewing all articles
Browse latest Browse all 4265

Cobian Reflector • Re: Checking the existance of destination directory

$
0
0
You might be able to create a batch file with a line like this:
if not exist c:\lists.txt exit 7
and then don't continue backup on error be checking "Cancel the task if some event fails."
Thanks ira. You helped me a lot :APP
If anyone wonders:
Create a file on your network folder (for example \\NAS\NAS.txt)
Create a text file on your computer containing this:

Code:

@echo offif exist \\NAS\NAS.txt (exit 0 )else (exit 7 )
Rename this file to "check_NAS.bat" (the extension must be BAT and not TXT).
Right click this file and create a shortcut. Right click the shortcut and change the Run parameter to "Minimazed".
In Cobian Tools-Options-Engine check "Analyze exit code..."
In backup task options Events add "Execute and wait" and choose your "check_NAS.bat.Ink" file.
In the same window check "Cancel the task if some event fails".

You can skip the shortcut creation and execute directly the BAT file but the cmd window can be visible for a few seconds everytime the task starts.

This works for me. Sorry for being a bit primitive. Not everyone is a programmer.

Statistics: Posted by Dave999 — 24 Nov 2023, 09:25



Viewing all articles
Browse latest Browse all 4265

Trending Articles