Author |
Message |
netspee
Joined: 30 Apr 2013 Posts: 7
|
Posted: Tue Apr 30, 2013 4:49 pm Post subject: Stop 'Run scripts after execution' |
|
|
I'd like to avoid to run 'Run script after execution' if there is any error to run in profile.
This is an example to test.
Profile name: Test1.fsf
C:\Test_Source1 to c:\Test_destination\
C:\Test_Source2 to c:\Test_destination\
C:\Test_Source3 to c:\Test_destination\
When it ran successfully, then run c:\DeleteTheFolder.bat(This is set it up on Advanced Settings)
DeleteTheFolder does ‘delete d:\test_desination folder and create again’.
When it is failed to copy in Test1.fsf, then I’d like to stop all procedure include run batch file. However I think it stops the procedure for copying the files but it still run bat file to delete folder.
Is there any way, I can stop all? Should I create the script on batch file? Then how should I code for this? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Wed May 01, 2013 3:00 am Post subject: |
|
|
Use Script Environment Variables in the bat script, specifically:
VV_EXECUTED = This variable is set to 1 if the execution method (backup, replication, synchronization) was started. It is set to 0 otherwise (e.g. a comparison only run or an error has happened before the execution method could start)
VV_EXIT_CODE = The ViceVersa exit code for scripts running after execution (see exit codes). If different from 0 there was an error.
More info in the ViceVersa help file. These variables are accessible from the script. _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|