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: Unknown Switch get -delete *.*

Sriman wrote:

get *.*
get -delete

That must go on a single line, like:
get -delete *.*
Sriman

Unknown Switch get -delete *.*

Hi

We need to put the below commands to get files from source and delete from source

get *.*
get -delete

Goodluck
Sriman
martin

Re: get -delete returns Unknown switch 'delete'

Thanks for your report.
The mget is an alias to the get, so they should behave identically, so it is still a bug:
https://winscp.net/tracker/1340
Guest

ah ha. My bad.

mget -delete *.dat does not work

get -delete *.day DOES work. I thought mget was required to download multiple files.
Guest

get -delete returns Unknown switch 'delete'

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 winscp.com v5.7.4 /script=)