Author Topic: Find files that are NOT of a specific type extension  (Read 13376 times)

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Find files that are NOT of a specific type extension
« on: August 20, 2013, 18:47:03 »
I would need something like the Windows File Explorer: http://superuser.com/questions/328223/find-all-files-that-are-not-of-a-specific-type-extension-in-folder

Can MC do it? I tried, it seems not by now ...

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #1 on: August 20, 2013, 18:53:47 »
Type e.g. -*.mp3 in the filter field. Minus sign means exclude.
Is it what you need?

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #2 on: August 20, 2013, 19:37:36 »
Cool, but it is not working.. how and where to type it exactly?

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #3 on: August 20, 2013, 19:40:57 »
Well, I just discovered that it must be typed simply as: -mp3

If you use -*.mp3 it does not work. Can you confirm?

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #4 on: August 20, 2013, 19:54:20 »
-*.ext does hide items with ext extension.
-ext hides items which contain ext in filename.

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #5 on: August 20, 2013, 20:07:09 »
Ok thanks.

Now another question: it should look inside all sub-folders...

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #6 on: August 20, 2013, 21:06:50 »
Now another question: it should look inside all sub-folders...
Try use File search with RegExp ((?!\.ext).)*$

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #7 on: August 21, 2013, 05:29:05 »
Mathias,
I think somthing like "Exclude" or "Not match" checkbox in the Look for panel of Find Files dialog could be useful. It should "invert" search. I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 3887
    • View Profile
    • Multi Commander
Re: Find files that are NOT of a specific type extension
« Reply #8 on: August 21, 2013, 07:23:33 »
I will take a look and see if it is possible to add something like that

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #9 on: August 21, 2013, 10:22:00 »
Mathias,
I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.

I agree, that's what I meant..

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #10 on: August 21, 2013, 10:23:26 »
Try use File search with RegExp ((?!\.ext).)*$

Thanks, but it looks little bit too math and moreover it seems not working.. anything simpler? Maybe add a simple option on MC search?

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #11 on: August 21, 2013, 10:25:10 »
However, I must say that Windows Explorer works good in this "exclude" search, and simply MC should use the same method.. if something works, useless to change... just keep it  ;)

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #12 on: August 21, 2013, 10:28:56 »
Thanks, but it looks little bit too math and moreover it seems not working..
I've tried it and it works. But it is case sensitive

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #13 on: August 21, 2013, 11:50:27 »
I'm trying this: ((?!\.avi).)*$

In the Video folder there are several video formats (avi, mp4, wmv, ...), but it returns no results. Why?

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #14 on: August 21, 2013, 12:02:19 »
Have you enabled RegExp option?

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #15 on: August 21, 2013, 12:46:01 »
I did. On your example, I see that you are not looking in sub-folders too.

Please, repeat the same example searching from the root (C:\). Can you get the results? I cannot.

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #16 on: August 21, 2013, 13:06:09 »
First pic - all files
Second pic - all except *.avi

As you can see video.avi is absent on the second pic whereas other files are the same.

**

Mathias,
sorting is reset after new search. I mean if you e.g. set sorting to Ext column, then clear results and perform new search, new results are NOT sorted by Ext. It would be great to keep sorting order.
« Last Edit: August 21, 2013, 13:08:56 by Jungle »

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #17 on: August 21, 2013, 13:36:30 »
I do not get any results! Please look attached.
My MC v. is 3.2.1 b.1432

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 466
  • Old Skull
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #18 on: August 21, 2013, 13:42:10 »
My MC v. is 3.2.1 b.1432
Probably this is because new beta has updated RegExp engine.
So this is my fault - i hadn't tested on current stable version. I apologize.

maestralien

  • Junior Member
  • **
  • Posts: 29
    • View Profile
Re: Find files that are NOT of a specific type extension
« Reply #19 on: August 21, 2013, 13:57:56 »
Ok no problem, we discovered the issue ...
So I could install the latest beta ...