I am using winscp.com scripting and basically trying to first check if a file already exist. If it does, then I want to cancel the rest of the script. I can "fake" this by adding this to my script:
call if [ -d %MY_FILE_NAME% ]; then echo "Already using current version"; exit; fi
as that breaks the "session" and causes all other commands to just crap out with
No Session.
No Session.
No Session.
No Session.
but is it possible to have a clean exit from the winscp script itself?
Thanks