Topic "get -delete returns Unknown switch 'delete'"

Author Message

I'm wanting to download files and delete when successful. I should be able to use:
mget -delete *.csv

but I get "Unknown switch 'delete' when I try this.

If I go to the command line manually, del (or delete) in fact does not exist, but 'rm' does delete the file. So I tried:
mget -rm *.csv

but that doesn't work either.

I could do:
mget *.csv
rm *.csv

but how do I know (from the script) that the download was successful before I delete the files on the server?

(I'm using v5.7.4 /script=)

ah ha. My bad.

mget -delete *.dat does not work

get -delete *.day DOES work. I thought mget was required to download multiple files.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
Thanks for your report.
The mget is an alias to the get, so they should behave identically, so it is still a bug:

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License