I created a set of batch files that help with TrID. Here are explanations of what they do:
tridpad.bat | Saves the output of TrID to a temporary file, and then opens that file in Notepad |
update.bat | Downloads and extracts the latest definitions from the TrID web site, and then runs packdefs.bat |
packdefs.bat | Runs 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!