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: -delete option for a PUT - it thinks it's source filename

Please read FAQ. If that does not help, come back.
Dee F

-delete option for a PUT - it thinks it's source filename

WinSCP Version 4.0.6 (Build 358) (OS 5.1.2600 Service Pack 3)

When I try...

put -delete output.txt targetdir\filename.txt

I get a response from WinSCP in the log that states

. 2010-02-19 12:51:57.128 File: "-delete"
* 2010-02-19 12:51:57.128 (ExtException)
. 2010-02-19 12:51:57.128 Asking user:
. 2010-02-19 12:51:57.128 File or folder '-delete' does not exist. ()
* 2010-02-19 12:51:57.128 (EScpSkipFile) File or folder '-delete' does not exist.
. 2010-02-19 12:51:57.128 Closing connection.


How do I change my script so it realizes the -delete is an option and not a filename?