Page 1 of 1

Delete files with matching name

PostPosted: Wed Nov 09, 2016 6:12 pm
by osslon
Hi
I wonder if its possible to delete 2 files if there name matches each other but with different extension and if how should I do?

For example if I have one movie.mkv file and one movie.srt file in the same folder I want Hazel to delete both files after for example 1 day.

Hopes any one here can help me.

//Osslon

Re: Delete files with matching name

PostPosted: Thu Nov 10, 2016 12:51 pm
by Mr_Noodle
You can delete one or the other but not sure if you can do both. If you match one file, you can check for the existence of the other and delete itself. The problem is then when it gets to the other file, it won't have the counterpart there.

You may need to write a custom script to do something like this.