after some refining I present two handy scripts to those of you,
who frequently use the (great!!) TrID tool,
Note: Those are meant for admins and power-users only, don't mess around if you are computer-noob! 1) Explorer Right Click Menu Addonevery file supplies with a right click addon, even known ext. files like doc or mp3
that some time are false renamed. this script will save you the cmd console typing,
or using the sendto menu (that sometimes take too long to open). the path to the target file,
is auto given by the explorer shell (the %1 part... in the script).
copy-paste to empty notepad and save as "trID right click tool- install.reg"
Windows Registry Editor Version 5.00
;--Don't Remove This: ---Created By EladKarako---;
[HKEY_CLASSES_ROOT\AllFileSystemObjects\shell]
[HKEY_CLASSES_ROOT\AllFileSystemObjects\shell\-? TrID/32 - File Identifier]
[HKEY_CLASSES_ROOT\AllFileSystemObjects\shell\-? TrID/32 - File Identifier\command]
@="\"D:\\DOS\\TrID_w32\\trid.exe\" \"%1\" \"-w\""
Important Note: Please change just the D:\\DOS\\TrID_w32 part to the path trid.exe is placed in.
remember to add 1 more \ for each 1 from your path,
for example: C:\Program Files\CoolProg\TrID should be written as C:\\Program Files\\CoolProg\\TrIDto uninstall use this script (copy-paste to notepad and save as "trID right click tool- uninstall.reg")
Windows Registry Editor Version 5.00
;--Don't Remove This: ---Created By EladKarako---;
[-HKEY_CLASSES_ROOT\AllFileSystemObjects\shell\-? TrID/32 - File Identifier]
2) the second enhanced script is the updater for trID exes and def file.
this will
AUTO download the :
? trid.exe
? TrIDDefs.TRD
? tridscan.exeto the current folder, skipping browsing and manual download each time you think the big def.
should get updated.
basically it deletes the old versions, downloads the most updated zip file from the http://mark0.net Domain, extracts the files from the zip, and deletes the temp zip files.you should copy-paste the following code to an empty notepad, and save as "trID update.
cmd"
Note #1:
I should have note you before that you should surround the file name in notepad with double quotes, or you will actually create a .cmd.txt file.
if you got file with text icon you should add double quotes in stage one (up the page)Note #2:
please download wget.exe and unzip.exe and put them in the same folder as the cmd fileo.k. now actually the script:
@echo off
rem ------don't remove-----created by eladkarako----------------
rem Delete Old Files
if exist trid.exe del /f /q trid.exe >nul
if exist tridscan.exe del /f /q tridscan.exe >nul
if exist trid_w32.zip del /f /q trid_w32.zip >nul
if exist TrIDDefs.TRD del /f /q TrIDDefs.TRD >nul
if exist triddefs.zip del /f /q triddefs.zip >nul
if exist tridscan.zip del /f /q tridscan.zip >nul
rem Download Updated Versions of exe and defenitions
wget http://mark0.net/download/trid_w32.zip http://mark0.net/download/triddefs.zip http://mark0.net/download/tridscan.zip --directory-prefix=. -c
rem Extract Files To Current Folder
unzip.exe -j -qq tridscan.zip
unzip.exe -j -qq trid_w32.zip
unzip.exe -j -qq triddefs.zip
rem Delete Not Needed Files
del /f /q tridscan.zip >nul
del /f /q trid_w32.zip >nul
del /f /q triddefs.zip >nul
del /f /q readme_e.txt >nul
del /f /q readme_i.txt >nul
to sum it all up, you can download the files at the bottom of the post.
unzip.exe
wget.exe
TrID Update.cmd
trID right click tool- uninstall.reg
trID right click tool- install.reg
(all compressed in a zip file).
download and place in the same folder, to 'install' the right click menu (effective immediately) double click the install reg file (to uninstall double click the uninstall reg file).
to update double click the cmd update file,
if anyone would like to know how-to add a timed update to windows
Scheduled Tasks post a reply here.
Elad Karako.