How to find Folders with odd conditions
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 25
- Joined: 2008-02-15, 13:59 UTC
- Location: Houston, Tx
How to find Folders with odd conditions
I know TC can do almost everything but here is what I want to do:
I have several folders with many files. I want to find folders that have files with .BAK extension where there are no other files with .XYZ as an extension in the same folder.
I can search for *.BAK and come up with 857 files but I want to find the folders that contain BAK but do not have any .XYZ extensions within the folder.
Is there a way?
I have several folders with many files. I want to find folders that have files with .BAK extension where there are no other files with .XYZ as an extension in the same folder.
I can search for *.BAK and come up with 857 files but I want to find the folders that contain BAK but do not have any .XYZ extensions within the folder.
Is there a way?
Re: How to find Folders with odd conditions
Without a script (I am not a programmer) this could probably be solved as follows.
Directly in Everything input line, then Export... (Example drive D:)
(1) D:\ child:*.bak File - Export...: bak.efu Searching - child:
(2) D:\ child:*.xyz File - Export...: xyz.efu
In Total Commander:
(3) Compare files by content: cm_CompareFilesByContent (button with command...)
bak.efu <=> xyz.efu --> remove identical folders (from xyz.efu) in bak.efu, save bak.efu.
(4) Open the file bak.efu by double clicking on the file in Total Commander --> in Everything.
Windows 10 Pro (x64) Version 1809 (Build 17763.475) | TC 9.22a x64/x86
☑ 'Everything' | Everything - Version 1.4.1.941 (x64) | How to use TC <=> Everything
Directly in Everything input line, then Export... (Example drive D:)
(1) D:\ child:*.bak File - Export...: bak.efu Searching - child:
(2) D:\ child:*.xyz File - Export...: xyz.efu
In Total Commander:
(3) Compare files by content: cm_CompareFilesByContent (button with command...)
bak.efu <=> xyz.efu --> remove identical folders (from xyz.efu) in bak.efu, save bak.efu.
(4) Open the file bak.efu by double clicking on the file in Total Commander --> in Everything.
Windows 10 Pro (x64) Version 1809 (Build 17763.475) | TC 9.22a x64/x86
☑ 'Everything' | Everything - Version 1.4.1.941 (x64) | How to use TC <=> Everything
Re: How to find Folders with odd conditions
No script needed
Everything search in TC:
https://yadi.sk/i/5C37PCb1l-UqQA
Everything search in TC:
Code: Select all
ev:!child:*.xyz child:*.bak
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Re: How to find Folders with odd conditions
That will search in all the drives and directories that is indexed by 'Everything' - better use ed: to only search from current directory:Ovg wrote: ↑2019-05-04, 17:48 UTC Everything search in TC:Code: Select all
ev:!child:*.xyz child:*.bak
Code: Select all
ed:!child:*.xyz child:*.bak
Last edited by petermad on 2019-05-05, 08:15 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: How to find Folders with odd conditions
2Ovg
Thank you for pointing this out!
I was thinking too complicated.
Btw, if you use the parameter ev: in TC (your picture), the field "Search in" in TC will be ignored.
--------------
The search can also be narrowed down with the parameter ev:, e.g. as follows (for drive D: OR D:,I:,J:):
Regards
Karl
Thank you for pointing this out!
I was thinking too complicated.
Btw, if you use the parameter ev: in TC (your picture), the field "Search in" in TC will be ignored.
--------------
The search can also be narrowed down with the parameter ev:, e.g. as follows (for drive D: OR D:,I:,J:):
Code: Select all
ev:D: !child:*.xyz child:*.bak
ev:<D:|I:|J:> !child:*.xyz child:*.bak
Karl
Re: How to find Folders with odd conditions
2petermad
2tuska
2tuska
OP didn't speak about any searching limits .....gtwatson77459 wrote: ↑2019-05-03, 18:15 UTC ... I have several folders with many files. I want to find folders that have files with .BAK extension where there are no other files with .XYZ as an extension in the same folder. ...
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Re: How to find Folders with odd conditions
You are rightOP didn't speak about any searching limits
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar