"Search for a list of file names" (Advance Search). Help!

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
xwingkilla
Posts: 15
Joined: Sat Jun 23, 2018 4:21 pm

"Search for a list of file names" (Advance Search). Help!

Post by xwingkilla »

I have a collection of (high rez) movie posters. They are collected into folders (named A to Z, numbers). I want to sort them out into new folders by genres (actions, sci-fi, etc).
Steps:
I got all the (low rez) thumbnails (I downloaded by genre) I wanted in a folder. I made sure they are renamed the same as the names in my collection.
File > export > save as .txt from that (thumbnails/genre) folder.
I need to open the .txt to clean up the list, deleting the path for each entry.
Save again (I don't know if there is an option to export the list with the names only, not including the full paths).
I now open the .txt file "Search for a list of file names" (Advance Search).
I get the list of all the thumbnails in the (thumbnails/genre) folder, but nowhere else.
What I want:
To see both the names from (thumbnails/genre) folder and the names from the movie collection folder.
I want to sort the result by path, select all from the collection, ignore all from thumbnails folder, and move the movie posters to a new (genre) folder.
I tried the search options, but I am stuck.
Lots of typing, but I wanted to know exactly what I am doing wrong or missing.
Thank you.
NotNull
Posts: 5236
Joined: Wed May 24, 2017 9:22 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by NotNull »

That is doable; maybe even easier than you would think (depending if I understood correctly).

So, if I understand correctly:

1. You have a folder - let's say M:\folder1 - with 26 subfolders (A to Z) and in each of those subfolders you have files like 01234.bmp
2. You have a folder - let's say T:\folder2 - with subfolders Comedy, Drama, Thriller, etc. And in those genre folders are files like 01234.jpg

Questions:
1. Is my interpretation correct?
1. Can movies (01234) belong in multiple genres or just 1
2. What are the actual file extensions for the high resolution resp the thumbnail files
3. Do you want to keep the thumbnails afterward?
4. Should the thumbnails and the hi-res images be in the same folder? Or in (for example) T:\folder3\Comedy
xwingkilla
Posts: 15
Joined: Sat Jun 23, 2018 4:21 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by xwingkilla »

NotNull wrote: Thu Jun 20, 2019 7:04 pm That is doable; maybe even easier than you would think (depending if I understood correctly).

So, if I understand correctly:

1. You have a folder - let's say M:\folder1 - with 26 subfolders (A to Z) and in each of those subfolders you have files like 01234.bmp
2. You have a folder - let's say T:\folder2 - with subfolders Comedy, Drama, Thriller, etc. And in those genre folders are files like 01234.jpg

Questions:
1. Is my interpretation correct?
1. Can movies (01234) belong in multiple genres or just 1
2. What are the actual file extensions for the high resolution resp the thumbnail files
3. Do you want to keep the thumbnails afterward?
4. Should the thumbnails and the hi-res images be in the same folder? Or in (for example) T:\folder3\Comedy
Wow! Glad I didn't wait another day before checking back.

1. Yes, that will be the final goal to have folders with subfolders, drama, etc. in the end.
1. Yes, they can belong to multiple genres at the same time. For now I was testing only one genre.
2. Both same, jpg (but I can convert to png for the high rez posters if necessary, if they have to end up in the same folder for example).
3. No. I only need the name list for the search.
4. No need for the thumbnails after sorting the posters out. The thumbnails are only necessary for the name list creation.

Thank you.
NotNull
Posts: 5236
Joined: Wed May 24, 2017 9:22 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by NotNull »

I think I still do not understand completely.

You want to overwrite the current thumbnail (T:\folder2\Drama\01234.jpg) with M:\Folder1\V\01234.jpg by moving this file from M: to T:? What are you going to do if movie 01234 has also genre Horror? The file can no longer be found on M: and you don't know if the one on T: is a thumbnail or a hi-res one.

----------------------------------------------

BTW: I already wrote something (well .. 1 line of code) for you that takes care of "everything" :

I generated 1000 files at random like this:

Thumbnails (excerpt):

Code: Select all

C:\Temp\Movieposters\Thumbnails\Comedy\9666.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9691.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9740.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9779.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9873.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9924.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9934.jpg
C:\Temp\Movieposters\Thumbnails\Comedy\9935.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0139.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0164.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0200.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0277.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0343.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0367.jpg
C:\Temp\Movieposters\Thumbnails\Drama\0405.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9734.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9744.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9789.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9793.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9803.jpg
C:\Temp\Movieposters\Thumbnails\Horror\9918.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0006.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0024.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0042.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0072.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0093.jpg
C:\Temp\Movieposters\Thumbnails\Thriller\0162.jpg

Hi-Res (excerpt)

Code: Select all

:\Temp\Movieposters\Hires\A\9063.bmp
C:\Temp\Movieposters\Hires\A\9191.bmp
C:\Temp\Movieposters\Hires\A\9333.bmp
C:\Temp\Movieposters\Hires\A\9489.bmp
C:\Temp\Movieposters\Hires\A\9540.bmp
C:\Temp\Movieposters\Hires\A\9691.bmp
C:\Temp\Movieposters\Hires\B\0225.bmp
C:\Temp\Movieposters\Hires\B\0405.bmp
C:\Temp\Movieposters\Hires\B\0551.bmp
C:\Temp\Movieposters\Hires\Q\8194.bmp
C:\Temp\Movieposters\Hires\Q\8313.bmp
C:\Temp\Movieposters\Hires\Q\8409.bmp
C:\Temp\Movieposters\Hires\Q\9135.bmp
C:\Temp\Movieposters\Hires\Q\9158.bmp
C:\Temp\Movieposters\Hires\R\0009.bmp
C:\Temp\Movieposters\Hires\R\0135.bmp
C:\Temp\Movieposters\Hires\R\0617.bmp
C:\Temp\Movieposters\Hires\R\1257.bmp
C:\Temp\Movieposters\Hires\R\1298.bmp
C:\Temp\Movieposters\Hires\R\1551.bmp
C:\Temp\Movieposters\Hires\R\2076.bmp
C:\Temp\Movieposters\Hires\R\2086.bmp

Resulting in:

Code: Select all

MOVE "C:\Temp\Movieposters\Hires\H\9779.bmp" "Thumbnails\Comedy\"
MOVE "C:\Temp\Movieposters\Hires\E\9873.bmp" "Thumbnails\Comedy\"
MOVE "C:\Temp\Movieposters\Hires\C\9924.bmp" "Thumbnails\Comedy\"
MOVE "C:\Temp\Movieposters\Hires\D\9934.bmp" "Thumbnails\Comedy\"
MOVE "C:\Temp\Movieposters\Hires\I\9935.bmp" "Thumbnails\Comedy\"
MOVE "C:\Temp\Movieposters\Hires\N\0139.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\I\0164.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\U\0200.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\L\0277.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\J\0343.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\S\0367.bmp" "Thumbnails\Drama\"
MOVE "C:\Temp\Movieposters\Hires\K\9600.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\C\9615.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\V\9634.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\F\9667.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\F\9670.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\R\9734.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\V\9744.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\U\9789.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\O\9793.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\E\9803.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\U\9918.bmp" "Thumbnails\Horror\"
MOVE "C:\Temp\Movieposters\Hires\Q\0006.bmp" "Thumbnails\Thriller\"
MOVE "C:\Temp\Movieposters\Hires\N\0024.bmp" "Thumbnails\Thriller\"
MOVE "C:\Temp\Movieposters\Hires\I\0042.bmp" "Thumbnails\Thriller\"
MOVE "C:\Temp\Movieposters\Hires\V\0072.bmp" "Thumbnails\Thriller\"
MOVE "C:\Temp\Movieposters\Hires\V\0093.bmp" "Thumbnails\Thriller\"
MOVE "C:\Temp\Movieposters\Hires\K\0162.bmp" "Thumbnails\Thriller\"

But for it to work, I need to know *exactly* what your situation is now and how you want it (everything is possible)
You can PM me the exact filelists (txt export from Everything) if you prefer that.
xwingkilla
Posts: 15
Joined: Sat Jun 23, 2018 4:21 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by xwingkilla »

NotNull wrote: Thu Jun 20, 2019 8:49 pm I think I still do not understand completely.

You want to overwrite the current thumbnail (T:\folder2\Drama\01234.jpg) with M:\Folder1\V\01234.jpg by moving this file from M: to T:? What are you going to do if movie 01234 has also genre Horror? The file can no longer be found on M: and you don't know if the one on T: is a thumbnail or a hi-res one.

----------------------------------------------

BTW: I already wrote something (well .. 1 line of code) for you that takes care of "everything" :

I generated 1000 files at random like this:


But for it to work, I need to know *exactly* what your situation is now and how you want it (everything is possible)
You can PM me the exact filelists (txt export from Everything) if you prefer that.
Thank you for your hard work.
I need to be clear with my description. Sorry about that.

TL:DR: When I created the export list I was expecting to see all the names twice.

I have two folders.
One folder has 10000 images, in alphabetical order, high quality. I do not want to move them at all. They will stay where they are.
I have another folder with a few 100s of images (low quality), named the same as the files in my (main, A-Z folders).
I want to be able to see both files, the names of the low rez 100 images, next to 100 names from my 10000 image A-Z folders. I should see two names with two paths in the search result.
Once I see all 200 names I want to sort them out using the path column. All 100 low rez names together, followed by 100 high rez names together. After that I will select the 100 high quality images only. I will copy them, CTLR+C, create a new folder, and paste them into it. The final result will be:
My original 10000 high quality images are still in their A-Z folders, untouched.
One folder with 100 small low quality images (only useful for creating the name list at first, and nothing else; will be deleted).
One folder with 100 high quality images, the ones copy pasted from my 10000 bank image. The only result I want.
NotNull
Posts: 5236
Joined: Wed May 24, 2017 9:22 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by NotNull »

That helps a lot; thank you!

I automated the complete process: Specify where your thumbnails are; specify where your hires files are and specify where the files should be put. Run a script and the right files end up in the right folder. You needn't do anything else.
But I think it is better for you to do it the manual way (as you suggested):

  • In Everything, go to Menu:Tools > Options > Context Menu
  • In the list of Context menu items, select Copy Name to Clipboard
  • Click on the Show this item radiobutton
  • Click OK
  • Back in "normal Everything", press Alt-Home to clear the current search
  • Enter this query in the search bar:
    "c:\path to your thumbnails" ext:jpg

    (replace "c:\path to your thumbnails" with the actual path)
  • Press Ctr-A to select all results
  • Right-click > Copy Name to Clipboard
  • Paste the results in Notepad
  • Save file as - let's say - Drama.txt
  • Back in Everything, press Alt-Home to clear the current search
  • Go to Menu:Search > Advanced Search
  • In the Search for a list of file names: box, browse to Drama.txt
  • Click OK
  • In the result list you will find the results you were looking for.
xwingkilla
Posts: 15
Joined: Sat Jun 23, 2018 4:21 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by xwingkilla »

I know what I am doing wrong.

"TOUGH GUYS" by itself will find:
THREE TOUGH GUYS ---.JPG
THREE TOUGH GUYS 01 - BOT.jpg
three_tough_guys_poster_01.jpg
Etc...
My main folder has all the same names as stated, but with different endings. "Superman 1 (portrait)", "superman 1 (landscape)", etc.
I thought the list would work just like when you're looking for one or a few words, like the example above, but It will only look for "Superman 1.jpg" exactly.
Now I've tried to "hack" the text file. The only syntax I could find is: *. If I modify the file name in the text file I get no results.
Looked into Options > General > Search> unchecked "... when using wildcards" thinking that was the issue also. Does not change a thing with a text file.

Now at least I know what the problem is.

Thank you.
xwingkilla
Posts: 15
Joined: Sat Jun 23, 2018 4:21 pm

Re: "Search for a list of file names" (Advance Search). Help!

Post by xwingkilla »

A few times the text file for "Search for a list of file names" (Advance Search) would not open at all. A text file with 4590 lines would not open as an example, but files with 1300 lines would.
After a bit of line by line deleting my final number is 1453. The text file will not open if it’s 1454 lines and beyond.
My solution is to divide let’s say a folder with 10000 files in 7 subfolders, then create a list of names 7 times, for each folder.
I hope in the future the list in the text file can be bigger.
Post Reply