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

Author Message
Dee F

Guest


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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License