Topic "rm * with exception some file how to ??"

Author Message
rongsoft
[View user's profile]

Joined: 2015-12-02
Posts: 2
Location: Thailand
Hello,

I quite newbie here. I want to use winscp to transfer the file
across network. I give authority the user to put some file in some folder
then i have winscp to do winschedule task collect all those file move to
destination somewhere after i use script below i found error on thumbs.db
winscp cannot delete file what is the best way to solve please advice.

my script below
option confirm off
option batch continue
open ftp://User:Passwrd:IP:Port/
cd /
lcd /
lcd p:\application\FTP_Backoffice\out
cd Backoffice\out
rm *
put *
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
You cannot exclude specific file with rm command.

What does it mean "file move to destination somewhere"? How do you do that?
rongsoft
[View user's profile]

Joined: 2015-12-02
Posts: 2
Location: Thailand
prikryl wrote:
You cannot exclude specific file with rm command.

What does it mean "file move to destination somewhere"? How do you do that?


Ok, I see thank you for your reply.
but if I want to clear all file at the destination directory before I put
instead of "rm" command.
what is the best way to do ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
I'm not sure I understand what you ask for.

To delete all files in remote directory, use rm *

But you know that already.
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