Find directories without specific files.

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

VadiMGP wrote:2MeTAlMollY
You can also try FileMask plugin.
Nice one :)
Seems to be a faster than the vbs script solution.

Thanks
Holger

Code: Select all

Mp3 Folder without Folder.jpg_SearchFor=
Mp3 Folder without Folder.jpg_SearchIn=
Mp3 Folder without Folder.jpg_SearchText=
Mp3 Folder without Folder.jpg_SearchFlags=0|000002000020||||||||22221|0000|
Mp3 Folder without Folder.jpg_plugin="filemask.DirMask.FolderJpg = 0 & filemask.DirMask.Mp3 > 0"
FileMask.ini wrote:[DirMask]
FolderJpg=folder.jpg
Mp3=*.mp3
MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Post by *MeTAlMollY »

2VadiMGP,
Thanks for the script this runs very smooth!
I already have a small request. It would be nice to have an ignore case option in the ini file. Now the plugin is case-sensitive, which made me wonder after running it the first time why it didn't return any folders.

2fenix_productions,
Thanks for the link. I will need to checkout the script, it has many possibilities.

Cheers,
MeTAlMollY
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2VadiMGP,
Thanks for the script this runs very smooth!
Sorry, I don't understand - do you mean script or plugin? Plugin IS case insensitive.
MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Post by *MeTAlMollY »

VadiMGP wrote:
2VadiMGP,
Thanks for the script this runs very smooth!
Sorry, I don't understand - do you mean script or plugin? Plugin IS case insensitive.
Ofcourse I mean the plugin. It works great :-)
User avatar
Christo
Junior Member
Junior Member
Posts: 13
Joined: 2014-10-25, 11:30 UTC

Re: Find directories without specific files.

Post by *Christo »

Hi all

It is now 2021 and 12 years later and I have the same need as the original query from MeTAlMollY, except I am on the 64bit version and these plugins are all for 32bit version.

I would like to search all directories/folders which don't contain a specific file(s) poster.jpg and return those folders in the find files list. I have to do this quite often and I would like to be able to use the search like i do for all my other tasks.

What is the best way to do this search now. I have seen this plugin and was hoping it could execute the vbs script mentioned here. I have not used custom vbs scripts to search in commander but it seems the way to go here.

I would appreciate some help or big bump in right direction please.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Find directories without specific files.

Post by *Dalai »

#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Christo
Junior Member
Junior Member
Posts: 13
Joined: 2014-10-25, 11:30 UTC

Re: Find directories without specific files.

Post by *Christo »

Thanks Dalai for quick response.

Great plugin https://totalcmd.net/plugring/fileindir64.html and it works.

I did get HolgerK first solution <NoFolderJpg.vbs> and second solution <FolderList.vbs> to work in 32bit version.

The FileInDir is obviously much more convenient to use.

Thanks.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Find directories without specific files.

Post by *Horst.Epp »

There is a very fast Everything way
ed:folder: !child:poster.jpg
This delivers all dirs starting from the current TC path
which do not contain a file poster.jpg
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply