Mark0's Forum

Software => TrID File Identifier => Topic started by: flarn2006 on July 02, 2008, 06:50:59 PM

Title: Helper batch files for TrID!
Post by: flarn2006 on July 02, 2008, 06:50:59 PM
I created a set of batch files that help with TrID. Here are explanations of what they do:

tridpad.batSaves the output of TrID to a temporary file, and then opens that file in Notepad
update.batDownloads and extracts the latest definitions from the TrID web site, and then runs packdefs.bat
packdefs.batRuns tridpackdefs.exe, and then copies the package to the TrID directory

They do make some assumptions, however:


Put all of the batch files in c:\tools\defs, except for tridpad.bat. Put tridpad.bat in your c:\tools directory. Then, open tridpad.reg to add an Identify item to your context menu for every file, which will run tridpad.bat on it to identify it and show the output in Notepad.

By the way, you need to have an environment variable called TRIDDEFS set to "c:\tools\defs" without quotes. You can actually set this environment variable to wherever your definitions are, as long as TrID is installed one level up. To set the environment variable, click Start, right-click My Computer, click the Advanced tab, click Environment Variables, and add a System variable.

Download WinRAR (trial version, but I think the command-line rar.exe is freeware) from http://www.rarsoft.com/rar/wrar38b2.exe (http://www.rarsoft.com/rar/wrar38b2.exe), and wget from http://users.ugent.be/~bpuype/wget/ (http://users.ugent.be/~bpuype/wget/).

The batch files follow, here attached!