Delete files with matching name

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Delete files with matching name 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
Last edited by osslon on Thu Nov 10, 2016 12:52 pm, edited 1 time in total.
osslon
 
Posts: 1
Joined: Wed Nov 09, 2016 5:52 pm

Re: Delete files with matching name 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support