This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
mysigchk_bat [2012-09-21 19:52] andreas [Discussion] cosmetics |
mysigchk_bat [2012-09-25 00:18] andreas updated to new version, now using a vbs script instead of sigcheck.exe |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== mysigchk.bat ====== | ||
+ | |||
+ | A Windows Batch file to check the version of executables (program files, DLL files, ...) by processing lists of files and reference version numbers. | ||
+ | |||
+ | ===== Synopsis ===== | ||
+ | |||
+ | <code dos> | ||
+ | mysigchk.bat [/v] LISTFILE [LISTFILE ...] | ||
+ | </ | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | '' | ||
+ | |||
+ | We use '' | ||
+ | |||
+ | LISTFILE is '' | ||
+ | |||
+ | [Path\]Filename|Version|Comment | ||
+ | |||
+ | 1 file per line. Empty lines and lines starting with ''#'' | ||
+ | |||
+ | If '' | ||
+ | |||
+ | If '' | ||
+ | |||
+ | If '' | ||
+ | |||
+ | ==== Helper script ==== | ||
+ | |||
+ | The script uses a helper script '' | ||
+ | |||
+ | Previously, '' | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | ==== Command line ==== | ||
+ | |||
+ | <code dos> | ||
+ | mysigchk.bat filestocheck.dat | ||
+ | mysigchk.bat filestocheck1.dat filestocheck2.dat | ||
+ | mysigchk.bat filestocheck*.dat | ||
+ | </ | ||
+ | |||
+ | ==== List of files ==== | ||
+ | |||
+ | === Example to read version numbers === | ||
+ | |||
+ | <file initial.dat> | ||
+ | ~\putty\putty.exe | ||
+ | ~\Mozilla Firefox\firefox.exe | ||
+ | ~\Mozilla Thunderbird\thunderbird.exe | ||
+ | </ | ||
+ | |||
+ | If you have these programs installed in their default directories running '' | ||
+ | |||
+ | < | ||
+ | C:\Program Files\putty\putty.exe|0.62.0.0 | ||
+ | C:\Program Files\Mozilla Firefox\firefox.exe|15.0.1.4631 | ||
+ | C:\Program Files\Mozilla Thunderbird\thunderbird.exe|15.0.1.4633 | ||
+ | </ | ||
+ | |||
+ | So, this could then be stored as a new LISTFILE, modified and checked again. | ||
+ | |||
+ | === A larger example === | ||
+ | |||
+ | <file bash LISTFILE.dat> | ||
+ | ~\putty\putty.exe|0.62.0.0 | ||
+ | C:\Program Files\putty\putty.exe|0.62.0.0|required | ||
+ | |||
+ | # Firefox and Thunderbird | ||
+ | ~\firefox\firefox.exe|15.0.1.4631 | ||
+ | ~\Mozilla Firefox\firefox.exe|15.0.1.4631 | ||
+ | ~\thunderbird\thunderbird.exe|15.0.1.4633 | ||
+ | ~\Mozilla Thunderbird\thunderbird.exe|15.0.1.4633 | ||
+ | |||
+ | # Adobe Acrobat 10 | ||
+ | ~\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe|10.1.4.38 | ||
+ | |||
+ | # Adobe Reader X/Adobe Reader 10 | ||
+ | ~\Adobe\Reader 10.0\Reader\AcroRd32.exe|10.1.4.38 | ||
+ | ~\Adobe\Reader 10.0\Reader\AcroRd32.dll|10.1.4.38 | ||
+ | ~\Adobe\Reader 10.0\Reader\plug_ins\EScript.api|10.1.4.38 | ||
+ | ~\Adobe\Reader 10.0\Reader\plug_ins\Annots.api|10.1.4.38 | ||
+ | |||
+ | # Foxit Reader | ||
+ | ~\pdfreader\Foxit Reader.exe|5.4.2.901 | ||
+ | ~\Foxit Reader\Foxit Reader.exe|5.4.2.901 | ||
+ | ~\Foxit Software\Foxit Reader\Foxit Reader.exe|5.4.2.901 | ||
+ | |||
+ | # Miscellaneous | ||
+ | ~\irfanview\i_view32.exe|4.33 | ||
+ | ~\totalcmd\totalcmd.exe|8.0.1.0 | ||
+ | ~\vlc\vlc.exe|2.0.3.0 | ||
+ | ~\VideoLAN\vlc.exe|2.0.3.0 | ||
+ | ~\VideoLAN\VLC\vlc.exe|2.0.3.0 | ||
+ | ~\winamp\winamp.exe|5.6.3.3234 | ||
+ | ~\winscp\winscp.exe|4.3.9.1817 | ||
+ | ~\winscp3\winscp.exe|4.3.9.1817 | ||
+ | ~\SumatraPDF\SumatraPDF.exe|2.1.1.0.0 | ||
+ | |||
+ | # Microsoft | ||
+ | ~\Microsoft Security Client\MsMpEng.exe|4.0.1526.0 | ||
+ | </ | ||
+ | |||
+ | ===== History ===== | ||
+ | |||
+ | < | ||
+ | 2009-12-01 First usable version, provided to colleagues | ||
+ | 2012-09-03 Added placeholder ~ (tilde) to look for files in common dirs | ||
+ | 2012-09-21 Updated script and made it publicly available | ||
+ | 2012-09-24 Replaced sigcheck.exe with getversion.vbs | ||
+ | </ | ||
+ | |||
+ | ===== Disclaimer ===== | ||
+ | |||
+ | I have tested this only on some Windows XP, and Windows 7 installations. It's my first attempt at using batch file extensions, delayed expansion and variable modifiers. Use at your own risk. | ||
+ | |||
+ | ===== License ===== | ||
+ | |||
+ | This script is free software. Use it as you please. It comes without any warranties, though. | ||
+ | |||
+ | ===== Download ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ~~DISCUSSION~~ | ||