Topic "Automatic delete files or folders matching a search term"

Author Message
[View user's profile]

Joined: 2012-11-17
Posts: 3
Location: Holland

I'm running a sync job from a NAS to a External drive which runs perfect.
I want as less garbage on the external drive as possible. When i open the drive on a Windows PC it creates thumbs.db files and when i open the drive on a mac it also creates certain files.

I want to create a 'Clean.bat' file whitch deletes these files and folders.

How can i use the RM command to delete all files matching a search term? (in multiple sub-folders)

Thank you,
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
WinSCP does not support recursive delete with file mask.

You can post new topics in this forum


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