I just finished a new beta (but seems pretty stable) version of my freeware TrID file identifier, for anyone who want to try it.
It bases it's analysis on a library of definitions, that for each filetype lists a series of patterns and uniques tokens, so that it can guess to with a certain file is more similar, irregardless of the file's name & extension.
Here's a typical results:
C:\TrID>trid \windows\media\chimes.wav
TrID/32 - File Identifier v1.72b - (C) 2003-06 By M.Pontello
Definitions found: 1956
Analyzing...
Collecting data from file: \windows\media\chimes.wav
50.0% (.WAV) RIFF/WAVe standard Audio (4008/2)
49.9% (.) Generic RIFF container (4000/1)
The current/stable version of TrID use a library of XML files for the defs, so it take some time to load & parse them at startup. For this new version, instead, I used a binary container, so that now it's almost instantaneous. Also, now it's possible to scan an entire folder of files:
C:\TrID>trid \pbcc\bin\*.exe
TrID/32 - File Identifier v1.72b - (C) 2003-06 By M.Pontello
Definitions found: 1956
Analyzing...
File: \pbcc\bin\CCEdit.exe
33.6% (.EXE) Win32 Executable PowerBASIC/Win 7.x (235131/25/18)
File: \pbcc\bin\PBCC.exe
84.9% (.EXE) Win16 NE executable (generic) (34068/22/9)
File: \pbcc\bin\PBRes.exe
61.2% (.EXE) WIN32 Executable PowerBASIC/CC 3.02 (393928/51/44)
File: \pbcc\bin\PBrow.exe
38.0% (.EXE) Win32 Executable PowerBASIC/Win 7.x (235131/25/18)
File: \pbcc\bin\RC.exe
72.1% (.EXE) Win32 Executable MS Visual C++ (generic) (37706/45/16)
Eventually TrID can also rename the scanned files adding the guessed filetype extensions.
This come useful, for example, when you have a bunch of files recovered with CHKDSK, and the type of each file isn't immediately clear.
So if you have a folder with files like:
FILE0001.CHK
FILE0002.CHK
FILE0003.CHK
...
Running something like:
C:\TrID>trid \myfolder\* -ae
will rename them to:
FILE0001.CHK.doc
FILE0002.CHK.xls
FILE0003.CHK.gif
...
Here's the download link:
TrID 1.72b (290KB)
That include the TrID's executable and a package with defs for over 1.900 filetypes.
Just unpack in a folder, and run.
I plan to publish a stable version in a couple of days on
TrID's page, as long as the updated versions of the companion tools (like the one that take the XML defs and create the single package, etc.).
A Linux port is also almost complete / ready, thanks to the migration of the code base from PowerBASIC to the free / Open Source
FreeBASIC.
Hope it will be useful to someone.
P.S.
It's and will be free for personal / non profit use, off course.
Bye!