(view source code of mcafee2.bat as plain text)
@ECHO OFF
ECHO.
IF NOT [%1]==[] GOTO Syntax
IF NOT "%OS%"=="Windows_NT" GOTO Syntax
SETLOCAL
START /WAIT REGEDIT.EXE /E "%Temp%.\%~n0.reg" "HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx"
IF NOT EXIST "%Temp%.\%~n0.reg" (
ECHO McAfee registry keys not found
ECHO.
GOTO Syntax
)
FOR /F "tokens=2 delims==" %%A IN ('TYPE "%Temp%.\%~n0.reg" ^| FIND "szEngineVer"') DO SET McEngVer=%%~A
FOR /F "tokens=2 delims==" %%A IN ('TYPE "%Temp%.\%~n0.reg" ^| FIND "szDatVersion"') DO SET McDatVer=%%~A
FOR /F "tokens=2 delims==" %%A IN ('TYPE "%Temp%.\%~n0.reg" ^| FIND "szDatDate"') DO SET McDatDate=%%~A
DEL "%Temp%.\%~n0.reg"
ECHO McAfee scanning engine version : %McEngVer%
ECHO McAfee virus definition version : %McDatVer%
ECHO McAfee virus definition date : %McDatDate%
ENDLOCAL
GOTO End
:Syntax
ECHO McAfee.bat, Version 2.00 for Windows NT 4 / 2000 / XP
ECHO Display McAfee VirusScan version information
ECHO.
ECHO Usage: MCAFEE [ /? ]
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
:End
page last modified: 2024-04-16; loaded in 0.0055 seconds