search from a.txt file?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Laura
Posts: 40
Joined: Mon Mar 26, 2012 11:02 pm

search from a.txt file?

Post by Laura »

Hi :)
I have this urgent problem for work.
I have some lists containing a series of filenames, for example

20 - Fiat Abart 1988 used.doc
30 - BMW 1988 used.docx
40 - TheBestCar 1988 used.xlm

and these files are inside a hard disk with thousands of folders.

Is there a way to tell Everything to search for all the files in the list and show each file where it is located. I would need a txt to be generated with the exact path of where the files are located, for example:

E:\ENG\car20\ - Fiat Abart 1988 used.doc
E:\ITA\Carni30\ - BMW 1988 used.docx
E:\ITA\Uni\40 - TheBestCar 1988 used.xlm

I hope you can help me, thanks :)
tuska
Posts: 1046
Joined: Thu Jul 13, 2017 9:14 am

Re: search from a.txt file?

Post by tuska »

Hi,
  1. Reference: Search for list of files?
  2. Example: File, e.g. "ListOfFiles.txt" with content:
    20 - Fiat Abart 1988 used.doc
    30 - BMW 1988 used.docx
    40 - TheBestCar 1988 used.xlm
  3. Menu "Search" > Advanced Search... > Scroll down to the bottom and to the right of "Search for a list of file names",
    click the Browse button '...' "Open the List Editor." > click on button "Import..." > click on file "ListOfFiles.txt", OK, OK
  4. The 'Everything' search box now shows the following:

    Code: Select all

    filelist:"20 - Fiat Abart 1988 used.doc";"30 - BMW 1988 used.docx";"40 - TheBestCar 1988 used.xlm"
  5. The following search result is displayed - only example:

    Code: Select all

    D:\__TEMP__\20 - Fiat Abart 1988 used.doc
    D:\__TEMP__\30 - BMW 1988 used.docx
    D:\__TMP__\40 - TheBestCar 1988 used.xlm
  6. Continue below with point "3. Click in the search result". ...
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺

Here is another variant...
  1. void wrote: Sun Mar 28, 2021 6:55 am For partial searches, please try the following:
    • In Everything, type in the following search and press ENTER:
      /paste_new_line_op=1
    • where 1 is OR and 0 is AND (default)
    • If successful you should see paste_new_line_op=1 in the status bar for a few seconds.
    • Paste the contents of multi-line text file into the search bar in Everything. -If possible try avoid copying the last empty line or remove the trailing |<> in your search.
      this search can take several seconds to complete.
  2. ... "Paste the contents of multi-line text file into the search bar in Everything." ...
    This should look like this:
    1. Everything 1.4.1.1024 (x64)

      Code: Select all

      <20 - Fiat Abart 1988 used.doc>|<30 - BMW 1988 used.docx>|<40 - TheBestCar 1988 used.xlm> !ext:lnk
      !ext:lnk corresponds to: ... ! = NOT -> Do not show me any files with file extension 'lnk'. ->
      C:\Users\<your-user-name>\AppData\Roaming\Microsoft\Windows\Recent\20 - Fiat Abart 1988 used.doc.lnk
      C:\Users\<your-user-name>\AppData\Roaming\Microsoft\Windows\Recent\30 - BMW 1988 used.docx.lnk
      C:\Users\<your-user-name>\AppData\Roaming\Microsoft\Windows\Recent\40 - TheBestCar 1988 used.xlm.lnk
       
      --- OR ---
    2. Everything 1.5.0.1382a (x64)

      Code: Select all

      <<20 - Fiat Abart 1988 used.doc>|<30 - BMW 1988 used.docx>|<40 - TheBestCar 1988 used.xlm>> !C:\Users\<your-user-name>\AppData\Roaming\Microsoft\Windows\Recent
      <your-user-name> ... enter the username on your PC here ...
  3. Click in the search result
  4. Press Ctrl+A to mark the entire search result
  5. Menu "File" > "Copy Full Name to Clipboard" ... copies the path and the name to the clipboard
    If this menu item is NOT present, then display it as follows:
    Everything Options > Context Menu > Copy Full Name to Clipboard > ⨀ Show this item
  6. Paste the text from the clipboard into a text file using Ctrl+V.
  7. Example: Result.txt

    Code: Select all

    D:\__TEMP__\20 - Fiat Abart 1988 used.doc
    D:\__TEMP__\30 - BMW 1988 used.docx
    D:\__TMP__\40 - TheBestCar 1988 used.xlm
________________________________________________________________________
See also: How to import a very large list of filenames from a text file for searching?
Laura
Posts: 40
Joined: Mon Mar 26, 2012 11:02 pm

Re: search from a.txt file?

Post by Laura »

it was the first solution you recommended to me to solve all my problems!

Thank you so much for the long post, the time I wasted on you, you were very very kind, and it's not easy to find people like you today :)
tuska
Posts: 1046
Joined: Thu Jul 13, 2017 9:14 am

Re: search from a.txt file?

Post by tuska »

You are welcome. :)
Post Reply