Differences
This shows you the differences between the selected revisions of the page.
2020-08-27 | 2022-05-02 | ||
Restored revision 1598011079. Undoing revision 1598553143. (martin) (hidden) | error handling (martin) | ||
Line 59: | Line 59: | ||
Replace the ''%%sftp://%%'' with the ''%%ftp://%%'', if you keep using the FTP protocol. | Replace the ''%%sftp://%%'' with the ''%%ftp://%%'', if you keep using the FTP protocol. | ||
+ | |||
+ | ===== [[errors]] Error Handling ===== | ||
+ | WinSCP by default aborts the script when some of the commands fail. On the contrary ''ftp.exe'' continues processing a script after an error. If your original ''ftp.exe'' script relies on this behavior, you can emulate it in WinSCP by switching the [[scriptcommand_option#batch|batch mode]] to ''on'' at the beginning of your script: | ||
+ | <code winscp> | ||
+ | option batch on | ||
+ | </code> | ||
===== Converting Commands ===== | ===== Converting Commands ===== |