Topic "delete by file type after synchronize"

Author Message


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"
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
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

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License