Topic "can we use syndelete option to delete files on remote dir"

Author Message
tong

Guest


hi ,

i have try to synchronize a local and remote dir, it works perfectly.

but i will like to perform a delete on the remote dir after this syn, so as to safe space on the remote dir. can we do it using scripting?

i try to use syndelete but it does not work, not sure if i do it correctly, please advice, thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25016
Location: Prague, Czechia
So you want to download all the files from remote server and delete them afterwards?
Just use get and rm then.
_________________
Martin Prikryl
tong

Guest


prikryl wrote:
So you want to download all the files from remote server and delete them afterwards?
Just use get and rm then.



hmmm... but the file names at the remote dir are randomly generated, can get and rm support *.* ?
tong

Guest


tong wrote:
prikryl wrote:
So you want to download all the files from remote server and delete them afterwards?
Just use get and rm then.



hmmm... but the file names at the remote dir are randomly generated, can get and rm support *.* ?



thanks prikryl, I check already, winscp do support wildcat mask, thanks alot.
autourdupc

Guest


Hi,


I had this problem for other job...

You can make a script that list the directory, and put this list into the command file of winSCP.
Then, launch WinSCP with this command file.

see https://winscp.net/forum/viewtopic.php?t=4688


Best regards,
Laurent.
guest

Guest


if you are using get and rm what happens if a file is created in the folder after the get and before the rm?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25016
Location: Prague, Czechia
guest wrote:
if you are using get and rm what happens if a file is created in the folder after the get and before the rm?

What do you think? Smile
BTW, the next version will support "get /delete".
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