Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for mcafee1.bat

(view source code of mcafee1.bat as plain text)

  1. @ECHO OFF
  2. SETLOCAL
  3. :: Delims is a TAB followed by a space
  4. FOR /F "tokens=3* delims=	 " %%A IN ('REG QUERY HKLM\SOFTWARE\McAfee\VirusScan\szVirDefVer ^| FIND "REG_SZ"') DO SET McDatVer=%%A
  5. FOR /F "tokens=3* delims=	 " %%A IN ('REG QUERY HKLM\SOFTWARE\McAfee\VirusScan\szEngineVer ^| FIND "REG_SZ"') DO SET McEngVer=%%A
  6. :: Remove dots from engine version
  7. IF DEFINED McEngVer SET McEngVer=%McEngVer:.=%
  8. :: Remove everything but the virus definition version from the string returned
  9. FOR %%A IN (%McDatVer:.= %) DO IF %%A GEQ 100 SET McDatVer=%%A
  10. ECHO McAfee scanning engine version  : %McEngVer%
  11. ECHO McAfee virus definition version : %McDatVer%
  12. ENDLOCAL
  13. GOTO:EOF
  14.  

page last modified: 2024-04-16; loaded in 0.0044 seconds