For checking latest definition files i using this code

code:
 
$virusfile="\\server\share$\virusfile.txt"
$details=@userid+", "+@date+", " +@ipaddress1+",dat files are old"
$datver=ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\VirusScan Enterprise\CurrentVersion","szVirDefVer")
$read=Right ($datver,4)
If Exist("c:\update.ini")=1
Del "c:\update.ini"
EndIf
Copy "\\server\updates$\update.ini" "c:\"
$srvdat=ReadProfileString("c:\update.ini","SuperDat-IA32","DATVersion")
If ($read<>$srvdat)
$WRITE=(WriteProfileString($virusfile,"Dats_Old",@wksta,$details))
Shell "\\server\share$\virus.bat"
EndIf

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran