WinScp Not Stopping When Error Occurs and exiting instead

Advertisement

DWVZ2000
Joined:
Posts:
10
Location:
USA

WinScp Not Stopping When Error Occurs and exiting instead

I am using Winscp Version 5.7.4. When I run a script that opens a black screen and runs the Winscp commands, when an error occurs such as "File not found", the window closes and exits. When I was running Version 5.5.6 and an error would occur the window stayed open so I could see exactly what the problem was. In version 5.7.4 even if there is a message that says "Abort, Retry, Skip, or Skip All" the program still closes and exits instead of staying on the screen. I would like to stay on the screen to view the code and error messages so I can debug the script. I am running the command through a Macro in MS Access.

Thanks for any help you can provide.
David

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

Re: WinScp Not Stopping When Error Occurs and exiting instead

Since 5.6, the commands, specified in a script file or on a command-line, run in a "batch" mode.

To revert to (previously default) interactive mode, use option batch off command.

See https://winscp.net/eng/docs/scriptcommand_option

Reply with quote

Advertisement

You can post new topics in this forum