Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New TrID beta - now with batch scanning & renaming
#1
I just finished porting my TrID file identifier codebase from PowerBASIC to FreeBASIC! Smile
I plan to publish the new version in a couple of days, but for now here's a downloadable beta that is stable enough to be considered a release candidate. So feel free to download and try.

TrID 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:

Code:
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. From this new version on, instead, a new binary container is used, so that now it's almost instantaneous. Also, now it's possible to scan an entire folder of files:

Code:
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:
Code:
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.

A Linux port is also almost complete / ready, thanks to the multiplatform nature of FreeBASIC.

Hope it will be useful to someone.

P.S.
It's and will be free for personal / non profit use, off course.

Bye!
nline TrID file identifier - recognize over 2.300 file types
Reply


Messages In This Thread
New TrID beta - now with batch scanning & renaming - by Mark0 - 06-01-2006, 09:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)