Hi all,
I would like to find files by their magic number or header.
I found this link on wikipedia: List of file signatures - Wikipedia
But I don't know if it's possible the match by an HEX value in Dopus.
Any of you got some experience on find files based on contains a specific HEX value?
Please link your account.
Done
In terms of what's built-in, you can match binary/hex data using regular expressions.
For example, \x1F
will match the hex byte 1F
, and \xAB\xCD
woudl match two hex bytes AB
CD
.
But there are caveats:
-
It'll match them anywhere within the file, not just at the start.
-
You can't search for null characters (
\x00
won't work).
If those are a problem, you could use scripting to do things differently. Opus provides scripting objects to look at the binary data inside files.
ExifTool reads and interprets these bytes as FileTypeExtension
tags. They are probably not wholly congruent with the list you linked, but they could be a good start.
You can give it a try with this add-in:
Sorry, How should I apply your suggestion in my case? is it applicable to the find function from the menu?
Hi, thanks for the suggestion, can I use in conjunction with Find function?
Thanks Ixp,
I never tried to use this kind of add-ons and script I will give it a go. it will require some time for me to config it
Leo,
meanwhile I 've really don't understand how to use your suggestion, sorry