Find files that have not their own hash (MD5) included in their names?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Find files that have not their own hash (MD5) included in their names?

Post by tnovak »

Hi!

is this possible (subj)?

Simplified example: there is folder with 2 files:

abc-123123.jpg with MD5 hash "123123" and
bcd-321321.jpg with MD5 hash "333333"

I would like to find the file bcd-321321.jpg because its hash is not included in its name.

Thank you.

P.S.: I love this program :-)
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find files that have not their own hash (MD5) included in their names?

Post by void »

Thank you for your feedback.

Please try the following search:

c:\my-jpg-folder\ regex:-([a-f0-9]*)\.jpg$ regmatch1:!=md5:

where c:\my-jpg-folder is the containing folder (subfolders are also searched).
regex:-([a-f0-9]*)\.jpg$ will match filenames ending with an MD5 sum and jpg extension and store the md5 value from the filename in the regmatch1 variable.
regmatch1:!=md5: will match files where the captured md5 from the filename does not match the md5 sum of the file contents.



regmatch1:
Comparing properties
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Find files that have not their own hash (MD5) included in their names?

Post by tnovak »

Hi!

It's totally awesome! :D Working perfectly - saved me so much time!

Again I'm surprised what unbelievable features your program is offering! One of best tooIs I ever used for... well... everything :lol:

Thank you and good Luck with your projects!
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find files that have not their own hash (MD5) included in their names?

Post by void »

Everything 1.5.0.1316a fixes a crash when using regmatch1:

Thanks again for the bug report.
tnovak
Posts: 15
Joined: Mon Jan 02, 2017 6:30 pm

Re: Find files that have not their own hash (MD5) included in their names?

Post by tnovak »

Hi!

Awesome! Thank you very much!
Post Reply