I'm sorry if this is a silly question but im not sure which direction I need to go
I have a directory with various file types in it. I wish to keep two particular file types and delete everything else recursively. Should I be looking at learning how to create a script for this or can I use the built in find somehow? It neeed to be quite configurable.
If it's a script what would you recommend I use as I have had a little experience in perl and vb, but I would rather start from scratch the right way.
Turn on Settings->Delete Filter and then delete the parent directory. You'll be prompted for the filter to use and can set one up which matches
Type Match [Files Only]
And
Name No-Match *.(xxx|yyy)
Where xxx and yyy are the two extensions you want to keep. (You could also use file types instead of extensions if you needed to.)
Of course, try it on a test directory first before doing it for real, in case you misunderstand how the filter will be applied and delete the wrong things by mistake.
Be warned, files that are actually selected in the file display will be deleted whether or not they match the filter! The filter is only considered when recursing into sub-directories. That's why I said you should start the delete from the parent.
That was just what I was after. It worked great. Is it possible to attach the filters to a button somehow? It's not essential, just an idea.
These delete filters are going to save me so much time so thanks again for the help.
Yes. If you save the filter and give it a name you can specify it using the Delete command's FILTER argument. You can also do a similar with the Copy command and maybe a couple of others.