Multi Commander Support Forum
Multi Commander => Support and Feedback => Topic started by: Ulfhednar on November 10, 2013, 12:44:03
-
Can I create a search for multiple object types?
eg - if I want to find several files where wildcards don't cover the range.
*.aaa
*.bbb
dd.*
etc
This would be a multi-pass search series in normal circumstances.
Wondering if I can script a button to make a search run (using something like ; to divide terms) that returns a number of different results as above. The collective result with all the search hits would be output to the find dialog.
Maybe a filter selection that shows results within nested folders would do the same, if I could figure out how to do that. (if it is possible!).
-
I suppose you may use regexp like
(dd\..*)|(.*\.aaa)|(.*\.bbb)
-
Good idea, I'll give it a shot. :)
-
Not sure I understand that the problem is.
You can type "*.aaa *.bbb dd.*" in the "Look for" field in search.
and it will be a match if any of them matches.
-
Thanks Mathias the ""s around every term was what I had missed, I'd put it only at the ends... ::)
UPDATE
Hmmm maybe not entirely my brain after all - I'm making a button & when using MC.FileSearch.Search the ""s are trimmed & only the 1st term is retained in the dialog. Everything else is discarded.
eg - "aaa.*" "*.ddd" "*.sss" - in the button script becomes - aaa.* in the search dialog that appears.
Also wondered can you add size parameters to the MC.FileSearch.Search command Options?
-
No the size parts can not be set from script yet.
No, quotes are not need. I can type "aaa.* *.ddd *.sss" in the look for field. and that should work.
-
OK. Another request on your list then ;)
I have got it to work now. Not exactly sure what I changed, I put it back to my original entry & it found the files. Previously it would show the multiple entries in the search field but wouldn't find them... ??? Guess it must've been a typo?
Thanks for the assistance. :)
-
Having shut down the PC last night & restarted the PC today, I find that having had all terms found yesterday, now only 3 of the 4 test files are found. Nothing changed just a restart ... My fake folder & fake files are all still there. :o
Clearing the fields & pasting in the term, or typing the term in manually, brings the 4th file type up OK, but my button won't.
Maybe there is some sort of bug here that would explain why it didn't work at all at first & now drops a component from the string list? ???
W7x64, MC 1.8 b3490 x64 build
-
Fake folder ?
You get items that are shown in search result but the files/folders do not exists on disk ?
-
Sorry I mean fake as in 0 bytes 'dummy' objects - just empty files & folders with names & extensions that I was using to test the search terms. :P
-
I have found the problem with my button/search terms. Some of the files I am looking for have bad date stamps.
eg - camera hadn't been set up correctly & defaulted to a date of 1980 (long before it was actually made) !! :o
My search thus would only find some of the items with correct timestamps, if there were any.
-
Maybe this tool might be useful
Menu > Tools > Picture Tools > Adjust EXIF Date Information
-
Thanks Mathias I'll give it a go. ;)