Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

rileybloke

Thanks for the reply, it was permission problem on the remote folder.
martin

Re: Get - Delete failing after 1st file

Can you "Download and Delete" the file in WinSCP GUI?
Can you download and then delete manually? Can you even delete the file anyhow?
rileybloke

Get - Delete failing after 1st file

Hi All,

Probably a simple one. I have created a script to get all the files from a remote directory then delete them...

get -delete /directory/* e:\localdir\inbound\*
It transfers the 1st file, but then fails when trying to delete it, therefore does not continue to the next file.

The log gives this...
019-08-27 19:04:22.890 Error deleting file '/directory/file1.PDF'. ("No such file or directory.
. 2019-08-27 19:04:22.890 Error code: 2
. 2019-08-27 19:04:22.890 Error message from server: No such file")
< 2019-08-27 19:04:22.890 Script: Error deleting file '/directory/file1.PDF'.
< 2019-08-27 19:04:22.890 Script: No such file or directory.
< 2019-08-27 19:04:22.890 Error code: 2
< 2019-08-27 19:04:22.890 Error message from server: No such file
. 2019-08-27 19:04:22.890 Script: Failed
. 2019-08-27 19:04:22.890 Script: Exit code: 1
. 2019-08-27 19:04:22.890 Closing connection.
. 2019-08-27 19:04:22.890 Sending special code: 12
. 2019-08-27 19:04:22.890 Sent EOF message

Thanks
Rileybloke