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

jensdausd

Re: Scripting: "get -delete" doesn't work

Thanks Martin, for your help and for WinSCP in general!!!
martin

Re: Scripting: "get -delete" doesn't work

All scripting switches (including -delete) are supported since 4.1.x only.
jensdausd

Scripting: "get -delete" doesn't work

I'm using a script to download files and delete them after download.

using the commands

get *.txt myfolder
rm *.txt

works, but if files are uploaded in between these commands, they are being deleted without having been downloaded.

So I tried

get -delete *.txt myfolder

which results in this:

2008-07-02 17:47:05.654 Listing file "-delete".
> 2008-07-02 17:47:05.654 Type: SSH_FXP_LSTAT, Size: 21, Number: 263
< 2008-07-02 17:47:05.732 Type: SSH_FXP_STATUS, Size: 31, Number: 263
< 2008-07-02 17:47:05.732 Status/error code: 2, Message: 263, Server: No such file, Language: en
. 2008-07-02 17:47:05.748 Closing connection.

Where's my mistake? Thanks for a clue