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
#2
Woah, that's crazy.

The "-ae" switch is downright incredible.

Good stuff.
·~¹'°¨°'¹i|¡~æthérFòx~¡|i¹'°¨°'¹~·-
avinash.vora - http://www.avinashv.net
Reply
#3
The beta is gone and the new v2.00 is out!
The web pages are still being updated but all the links to the various tools (TrID itself, the .TRD defs package, the XML definitions archive, pattern scanner, etc.) are functional.

[Image: trid.png]

Link: Mark0 - TrID

Bye!
nline TrID file identifier - recognize over 2.300 file types
Reply
#4
Man, congrats for coding something this useful. This will cure lots of headaches. Cheers!
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
Yeah, once again, congrats on a truely useful program. I cant say I will have an immediate use for it, but I will definately be keeping your site in my favourites in case I ever need files identified, or anyone I know does.
Reply
#6
Linux version ready too!

[Image: trid-linux.png]

Link: TrID file identifier

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


Forum Jump:


Users browsing this thread: 1 Guest(s)