Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Automate a download but getting stuck if file got deleted during the process

This is what option failonnomatch off should achieve.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
kevink

Automate a download but getting stuck if file got deleted during the process

I automated a download using winscp and it was working for 2 years until the software that puts the files there was upgraded and now it deletes files if its job was not successful. I get a Received error message from remote side: 'scp: /path: no such file or directory'
(O)K or (A)bort:
In the command line its not an issue because I can click O and continue, but in the script it just exits.
How to I tell it to OK everything? The basics of the script is below.

option failonnomatch off
get -preservetime -neweronly /path/* destination\
exit