File 'blacklist' to find specific files and delete them

Discussion related to "Everything" 1.5 Alpha.
Post Reply
pete_tr
Posts: 5
Joined: Sun Feb 04, 2024 8:45 pm

File 'blacklist' to find specific files and delete them

Post by pete_tr »

Sorry if this kind of thing was already discussed here.
I would like to use Everything to find files that I know I don't want to have on my disks and delete them. Is there some kind of way to do that with this software?

An example of what I would like to do:
1. Put all files I want to add to the blacklist into a specific folder
2. View that folder in Everything and generate SHA512 hashes
3. Copy the hashes into a .txt file
4. In the future load that list of hashes and check against every file on my computer (or specific directories, I AM aware that it would take a long time)
5. Delete every one of those files or do something else with them

Alternatively I could do step 1 and 2 and export that list of files into and .efu and then use that .efu with the hashes present to find the files in the future.I know that hashing the files takes a long time but I have a specific directory on my PC where the files are not edited or moved in anyway and could be pre-calculated using the PROPERTIES window.

Or is there some other, simpler way?

edit: .csv file would be better than .efu maybe
here is an example fo the .csv file

void edit: removed link and added csv here (I modified the sha512 values):

Code: Select all

"Name","Size","Extension","SHA-512"
"c2-hardmode-001.png",849958,png,429D8B3D979E69234A4BC8C1B9C751670C98F95997F64B8DC4C54E39DA9967B59A24B6EBAB0B78431A28806D64AA16F8798B4D879259713F7571DE8957BAEE2C
"the-clasher-001.png",3517163,png,12B053116014CA8FDCFFD0B02497779C5FD05C83B8B6D762C49F716E8262BCF3B59E442FD6C1D4C90F598AC6652C8A601C75F157BED54ED7E0546C79357332CE
"the-clasher-002chests.png",3530164,png,C2409B6B3125B4DEBB5017C595F581310E7D9F74FE99480BDC6DF98DD01299C16037DD8EBECB1E5144AD62068FDE8388DF2520EF83BDD786215D7C82B5DEF0F2
void
Developer
Posts: 16668
Joined: Fri Oct 16, 2009 11:31 pm

Re: File 'blacklist' to find specific files and delete them

Post by void »

What I would do:

In Everything, search for:

size:

Copy all your size values from your CSV file in Excel

Paste your size values into Everything after the size: text
Your search should look like:

size:<849958|3517163|3530164>



Add the following to the end of your search:

sha512:

Copy all your sha512 values from Excel

Paste your sha512 values into Everything after the sha512: text
Your search should look like:

Code: Select all

size:<849958|3517163|3530164> sha512:<429D8B3D979E69234A4BC8C1B9C751670C98F95997F64B8DC4C54E39DA9967B59A24B6EBAB0B78431A28806D64AA16F8798B4D879259713F7571DE8957BAEE2C|12B053116014CA8FDCFFD0B02497779C5FD05C83B8B6D762C49F716E8262BCF3B59E442FD6C1D4C90F598AC6652C8A601C75F157BED54ED7E0546C79357332CE|C2409B6B3125B4DEBB5017C595F581310E7D9F74FE99480BDC6DF98DD01299C16037DD8EBECB1E5144AD62068FDE8388DF2520EF83BDD786215D7C82B5DEF0F2>
This will only calculate the sha512 for files that match the specified size.



edit:
You can also open CSV/EFU files in Everything from File -> Open File List.
Select all the files and right click under the Size column and click Copy Size.
You can do the same for Sha512 values if you add the sha512 column.
pete_tr
Posts: 5
Joined: Sun Feb 04, 2024 8:45 pm

Re: File 'blacklist' to find specific files and delete them

Post by pete_tr »

That's what I figured out myself. Is there some kind of way to automate this?
For example, let everything auto-copy those size values with the correct syntax
so copy the sizes and then paste <849958|3517163|3530164> or without the < >
doing this manually would be tedious the more files I add into the blacklist.

Right know copying the sizes with right click gives me this
10811144
61528
1855621
392001
2047208
1668725
192812
1760040
329614
2503595
so I would have to do everything else manually. A good suggestion would be to have an option to auto generate the <, > and | it while copying?
Last edited by pete_tr on Tue Feb 06, 2024 1:00 am, edited 1 time in total.
void
Developer
Posts: 16668
Joined: Fri Oct 16, 2009 11:31 pm

Re: File 'blacklist' to find specific files and delete them

Post by void »

The < and > are auto generated when pasting multiple lines.

Please try copying the following sizes and pasting them in Everything:

Code: Select all

10811144
61528
1855621
392001
2047208
1668725
192812
1760040
329614
2503595
They should be pasted as:

<10811144|61528|1855621|392001|2047208|1668725|192812|1760040|329614|2503595>
pete_tr
Posts: 5
Joined: Sun Feb 04, 2024 8:45 pm

Re: File 'blacklist' to find specific files and delete them

Post by pete_tr »

oh, it actually works, I didn\t understand you before
thank you, that is just what I need

edit: is there a way to merge .efu/.csv filelists?
void
Developer
Posts: 16668
Joined: Fri Oct 16, 2009 11:31 pm

Re: File 'blacklist' to find specific files and delete them

Post by void »

edit: is there a way to merge .efu/.csv filelists?
Only with filenames at the moment. (not sha values)

To merge filenames from file lists please try Tools -> File List Editor.
In the File List Editor, from the File menu, click Import....
Select a file list and click Open.
Repeat for all filelists.



I recommend merging lists in Excel.
You'll need to match up the columns and remove the extra headers.
pete_tr
Posts: 5
Joined: Sun Feb 04, 2024 8:45 pm

Re: File 'blacklist' to find specific files and delete them

Post by pete_tr »

void wrote: Tue Feb 06, 2024 4:40 am I recommend merging lists in Excel.
You'll need to match up the columns and remove the extra headers.
I could do that but I have my own solution. When adding files to the blacklist I could temporarily move them into a signle folder, then change their names to the SHA512 value and then save them as an .efu/.csv . It will be faster for me that way.
Post Reply