No worries, I have gone in the dual scripts direction (though it would be nice to have a feature in the next version to reset the errorlevel..........) :wink:
- dcstar
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
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!
The script should exit after error, only if you have "option batch abort" set. Do you? Then unset it before creating the directory, and reset it back afterwards:...
option batch on
mkdir <path>
option batch abort
put ...
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!
...
option batch on
mkdir <path>
option batch abort
put ...