Reset errors in scripted operation
Hello there, I have managed to successfully get a scripted job running, but I need to either have it ignore a possible error early in the script, or I need to be able to only capture errors later in the script.
I am creating a specific remote directory as part of the script - I don't really care if the directory already exists - but if the directory does exist, the resulting error returns an Errorlevel 1 when the script exits (it works fine if the directory doesn't exist).
I only want the Errorlevel 1 if subsequent file transfers fail!
It has to be this way as a separate process re-runs the script an hour later if it initially returned an error.
I think I can do a "workaround" by running two separate scripts, one to create the directory (without any error checking) and then one to do the transfers, but I'd rather have it all in one script for simplicity's sake.
I am using version 3.7.6 in a Windows XP environment.
I am creating a specific remote directory as part of the script - I don't really care if the directory already exists - but if the directory does exist, the resulting error returns an Errorlevel 1 when the script exits (it works fine if the directory doesn't exist).
I only want the Errorlevel 1 if subsequent file transfers fail!
It has to be this way as a separate process re-runs the script an hour later if it initially returned an error.
I think I can do a "workaround" by running two separate scripts, one to create the directory (without any error checking) and then one to do the transfers, but I'd rather have it all in one script for simplicity's sake.
I am using version 3.7.6 in a Windows XP environment.