File Search from a list , for multiple files at once ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Geoneedshelp
New Member
New Member
Posts: 1
Joined: 2024-06-27, 12:20 UTC

File Search from a list , for multiple files at once ?

Post by *Geoneedshelp »

Hi there,

I have trawled through the forums a bit today, but urgently need some help.

I am trying to search for multiple files at once within a directory. I have the list of unique file names in a txt format and in a text string. What i need to know is if its possible to do this?

My problem is I have over 1000 files and only need 80 of them. I have the list of 80 file names and I want to avoid manually searching through each directory.

I have put the following in the search bar : "X27_01005ECR_01_001_20240504_104731" and "X27_01005ECR_01_001_20240504_111913" with no success.

Whereas if I search for: X27_01005ECR_01_001_20240504_104731 it works. How can I search for the two files mentioned above?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: File Search Function

Post by *Stefan2 »

Hi and welcome.

In the search dialog press F1 and read the help at "Search in:" . . . You can enter the name of a text file ....




Search in:

Here you can enter one or more starting directories, separated by ";". You can also start the search inside an archive.

Put '>' character in this field before saving the search to keep the "Search in" field unchanged when loading the saved search.

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.

Important:


 
User avatar
white
Power Member
Power Member
Posts: 5753
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: File Search from a list , for multiple files at once ?

Post by *white »

Geoneedshelp wrote: 2024-06-27, 12:25 UTC I have put the following in the search bar : "X27_01005ECR_01_001_20240504_104731" and "X27_01005ECR_01_001_20240504_111913" with no success.
You can add a dot to make it work, for examples:

Code: Select all

"X27_01005ECR_01_001_20240504_104731." "X27_01005ECR_01_001_20240504_111913"

Code: Select all

"X27_01005ECR_01_001_20240504_104731" "X27_01005ECR_01_001_20240504_111913" nonsense.nonsense
The way the Search for field works is quite complex. See here for an explanation.

What you probably want is to use, is the LOADLIST command. Search the help for this command.
Other things of interest are: using a list file @c:\path\filelist.txt in the Search in field and menu option Mark/Load Selection From File (don't include quotes when using the latter).
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: File Search from a list , for multiple files at once ?

Post by *tuska »

A solution when using the tool 'Everything' (which can also be used for search queries in Total Commander)
can be found here: search from a.txt file?. The search results are displayed in real time.

___________________________________________________________
Windows 11 Pro (x64) Version 23H2 (OS Build 22631.3810)
'Everything' 1.5.0.1383a (x64) - "Portable on system drive C:"
Search queries: Total Commander <=> 'Everything' <= Windows Search
Troubleshooting | Troubleshooting Information 1.5
Post Reply