Topic "Problem with rm command."

Author Message
Kospi
[View user's profile]

Joined: 2017-09-13
Posts: 4
Hi all,
I did an small script, like this:

open ftp://*****@*******:******@*****/

binary
cd respaldo

rm RSo10.rar

rename RSo09.rar RSo10.rar

close
bye


the problem is that is not exist RSo10.rar, the script stop but I need that continue.
How I can do this?

Thanks in advance,
Best Regards!


Winscp 5.7.4 Windows 10/Windows 7
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27058
Location: Prague, Czechia
Use option batch continue.

See https://winscp.net/eng/docs/scriptcommand_option#batch
Kospi
[View user's profile]

Joined: 2017-09-13
Posts: 4
martin wrote:



Thanks a lot!
Advertisements

You can post new topics in this forum

Search

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