Search more than 700 files at once

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MARK2580
Junior Member
Junior Member
Posts: 43
Joined: 2016-07-01, 07:31 UTC
Location: Russia. Kirov

Search more than 700 files at once

Post by *MARK2580 »

Hello, quite often I need to find a lot of files at once, the names of which I know in advance (I have a list).
The search field has a limitation; I manage to find about 50-60 files at a time. I can use the Everything program to do a complete search, but there is one problem.

TC has a very useful function for me - “copy larger files”. There may be a large number of smaller copies in the search results, and I only want to get the largest files. Neither Everything, nor even Explorer, has such a filter.

I tried to find some information, such as transferring the Everything results to Total Commander to open "search results", but did not find anything.
Are there any ways to solve my problem :?:
Win 10x64 / TC 11.01 x64 / Ryzen 5 3600 / GTX 3060 12gb / 32gb RAM
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search more than 700 files at once

Post by *petermad »

2MARK2580

If you click the "Advanced" tab in the "Find Files" dialog there is a "File size" setting wher you can set TC to only find files over a certain size.
Help wrote:Advanced
File size: Here you can search for files equal to, smaller or larger than a specific size. Supports the Units "Bytes", kBytes, MBytes and GBytes (each a factor of 1024 larger than the previous one) and fractional numbers, e.g. 0.1 GBytes

If you have a list of files you can enter the @drive:\path\filename of that list in the "Search in" field:
Help wrote:Search in:
You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list of files and directories to be searched, in the form @c:\path\filelist.txt. The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. The text file also supports wildcards and regular expressions
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6969
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Search more than 700 files at once

Post by *Horst.Epp »

There are scripts which can put Everything GUI results into a TC window.
But why is that necessary or helpfull in your case ?
Using the ev: or ed: prefix in a TC search, you can use the full set of Everything search functions.
You must use Everything 1.5 as this has the required functions.

Here an example TC search
ev: wfn:test.txt distinct-sort:name;size distinct:name

This finds the largest of all files named test.txt

This one works the same but uses a wildcard for the files to search
distinct-sort:name;size distinct:name wfn:test*.txt
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search more than 700 files at once

Post by *petermad »

You can also configure 'Everything' to open folders in TC instead of Explorer:

In 'Everything's settings, go to "General" -> "Context menu" -> and set "Open (Folders)" and "Open Path" to:

Code: Select all

$exec("C:\totalcmd\totalcmd64.exe" /O /A /S "%1")
change the path to totalcmd64.exe to what you use.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MARK2580
Junior Member
Junior Member
Posts: 43
Joined: 2016-07-01, 07:31 UTC
Location: Russia. Kirov

Re: Search more than 700 files at once

Post by *MARK2580 »

petermad wrote: 2023-11-01, 16:14 UTC 2MARK2580

If you click the "Advanced" tab in the "Find Files" dialog there is a "File size" setting wher you can set TC to only find files over a certain size.
Help wrote:Advanced
File size: Here you can search for files equal to, smaller or larger than a specific size. Supports the Units "Bytes", kBytes, MBytes and GBytes (each a factor of 1024 larger than the previous one) and fractional numbers, e.g. 0.1 GBytes

If you have a list of files you can enter the @drive:\path\filename of that list in the "Search in" field:
Help wrote:Search in:
You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list of files and directories to be searched, in the form @c:\path\filelist.txt. The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. The text file also supports wildcards and regular expressions
I knew that I wrote it too complicated. In general, I have a folder in which there are more than 1000 different folders, in these folders there may be DDS files with the same names, but in different folders they can be of lower resolution, and in others of higher resolution. For example, I search for 3 files, but get more than 100 in the results. Using TC, I simply click display results on the panel, select everything that is there and copy it with the condition “only larger size”. I have no idea what the exact or even approximate weight of the DDS file will be.

Regarding @c:\path\filelist.txt, this seems to be exactly what I need. I can simply save the Everything search results to a txt file and then upload it to TC. True, I had no idea about the existence of such functions, where can I read more about this?
Win 10x64 / TC 11.01 x64 / Ryzen 5 3600 / GTX 3060 12gb / 32gb RAM
User avatar
white
Power Member
Power Member
Posts: 5785
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Search more than 700 files at once

Post by *white »

MARK2580 wrote: 2023-11-01, 22:46 UTC Regarding @c:\path\filelist.txt, this seems to be exactly what I need. I can simply save the Everything search results to a txt file and then upload it to TC. True, I had no idea about the existence of such functions, where can I read more about this?
As mentioned: TC's Help (F1). Using @c:\path\filelist.txt in the Search in field, is a searchlist. If you purely want to load search results into TC then the LoadList command may be more useful.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6969
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Search more than 700 files at once

Post by *Horst.Epp »

MARK2580 wrote: 2023-11-01, 22:46 UTC Regarding @c:\path\filelist.txt, this seems to be exactly what I need. I can simply save the Everything search results to a txt file and then upload it to TC. True, I had no idea about the existence of such functions, where can I read more about this?
There is an Autohotkey script which copies Everything GUI results into a file
which is automatically loaded into TC using its LOADLIST command.
Look in this thread
viewtopic.php?t=75439
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
MARK2580
Junior Member
Junior Member
Posts: 43
Joined: 2016-07-01, 07:31 UTC
Location: Russia. Kirov

Re: Search more than 700 files at once

Post by *MARK2580 »

Horst.Epp wrote: 2023-11-02, 09:37 UTC
MARK2580 wrote: 2023-11-01, 22:46 UTC Regarding @c:\path\filelist.txt, this seems to be exactly what I need. I can simply save the Everything search results to a txt file and then upload it to TC. True, I had no idea about the existence of such functions, where can I read more about this?
There is an Autohotkey script which copies Everything GUI results into a file
which is automatically loaded into TC using its LOADLIST command.
Look in this thread
viewtopic.php?t=75439
It's not often that I need to search for such a large number of files; I'd rather save the search results to a file than have another program on my computer. But thank you. :mrgreen:
Win 10x64 / TC 11.01 x64 / Ryzen 5 3600 / GTX 3060 12gb / 32gb RAM
Post Reply