Author Topic: Helper batch files for TrID!  (Read 11578 times)

flarn2006

  • Newbie
  • *
  • Posts: 1
Helper batch files for TrID!
« 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:

  • TrID is installed in c:\tools, which is in your path
  • The TrID definitions are installed in c:\tools\defs
  • You have wget and rar.exe (comes with WinRAR) in your path

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, and wget from http://users.ugent.be/~bpuype/wget/.

The batch files follow, here attached!
« Last Edit: July 05, 2008, 10:17:25 PM by Mark0 »