Delete 1 version of multiple files?

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

Moderator: Mr_Noodle

Delete 1 version of multiple files? Sat Dec 10, 2022 2:25 pm • by TallTrees
Hi there,

I'm wanting to create a rule that does the following:

If filename.A exist
AND
if filename.B exist
AND
if filename.C exist

Delete filename.B

filename must be the same exact name for each group of files, and there will be thousands of groups of files with the same filename. For instance, noodlesoft1.txt, noodlesoft1.pdf and noodlesoft1.doc; noodlesoft2.txt, noodlesoft2.pdf, and noodlesoft2.doc, etc. and in this instance if all 3 versions of noodlesoft1 exist (txt, pdf, and doc), delete noodlesoft1.pdf

Can this be done, and if so, how when the filename will be variable for each grouping?
TallTrees
 
Posts: 8
Joined: Wed Oct 20, 2021 12:05 pm

Re: Delete 1 version of multiple files? Mon Dec 12, 2022 10:51 am • by Mr_Noodle
Look up "match patterns" in the help. You can set up a custom attribute to match the name. Also look up "nested conditions". Using those, you can create a nested condition to match against other files in the same folder. So, you can have a file match a file with the B extension, and have a nested condition to match the existence of A and C files in the same folder using a custom attribute.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support