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: rm * with exception some file how to ??

I'm not sure I understand what you ask for.

To delete all files in remote directory, use rm *

But you know that already.
rongsoft

Re: rm * with exception some file how to ??

martin 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

Re: rm * with exception some file how to ??

You cannot exclude specific file with rm command.

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

rm * with exception some file how to ??

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 *