Topic "delete by file type after synchronize"

Author Message
Zombiewhisperer

Guest


I have no problems sync'ing the files to the server but I need to delete a specific file type in a folder full of other files and leave the rest there. The filename changes with the date so there is no static setting for me to point to. Is there some kind of wildcard delete option where it only deletes specific file types that I can use? Thanks!

Example of script I would like to run:

synchronize remote "D:\Upload\"
put -delete "D:\Upload\*.csv"
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Your code looks ok, you probably just want to exclude the .csv files from the synchronize (use -filemask= for that).
_________________
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