(view source code of mcafee1.bat as plain text)
@ECHO OFF
SETLOCAL
:: Delims is a TAB followed by a space
FOR /F "tokens=3* delims= " %%A IN ('REG QUERY HKLM\SOFTWARE\McAfee\VirusScan\szVirDefVer ^| FIND "REG_SZ"') DO SET McDatVer=%%A
FOR /F "tokens=3* delims= " %%A IN ('REG QUERY HKLM\SOFTWARE\McAfee\VirusScan\szEngineVer ^| FIND "REG_SZ"') DO SET McEngVer=%%A
:: Remove dots from engine version
IF DEFINED McEngVer SET McEngVer=%McEngVer:.=%
:: Remove everything but the virus definition version from the string returned
FOR %%A IN (%McDatVer:.= %) DO IF %%A GEQ 100 SET McDatVer=%%A
ECHO McAfee scanning engine version : %McEngVer%
ECHO McAfee virus definition version : %McDatVer%
ENDLOCAL
GOTO:EOF
page last modified: 2024-04-16; loaded in 0.0044 seconds