Assuming the server is using the newest version of defininitions, you can read the ini-file: Definfo.dat
for the newest def-dates, and use this short form of the scriptcode:
Break On
$CommonFiles = ReadValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion", "CommonFilesDir")
$VirDefFile = $CommonFiles + "\Symantec Shared\VirusDefs\Definfo.dat"
$CurrDefs = ReadProfileString($VirDefFile, "DefDates", "CurDefs")
$VPDate = Substr("$CurrDefs",5,2) + "/" + Substr("$CurrDefs",7,2) + "/" + Substr("$CurrDefs",1,4)
? "Newest NAV Definition files are dated: " + $VPDate
This code will work on KiX 3.6? and KiX 2000
-Erik
Doc, congrats, here is your chance for post #601 or more. I modified your code to include the name of the "Common files"
library, because the "Common files" library is called "Fælles filer" in danish, and i assume something different in
other languages.
You have to read "HKEY_CURENT_USER" instead of "HKEY_LOCAL_MACHINE".
There is a lot ot other interresting values here, like:
AppData
Desktop
Programs
Start Menu
Startup
Quick Launch
ProgramFilesDir
Common Desktop
Common Programs
Common Start Menu
And
Common Startup
[ 02 November 2001: Message edited by: kholm ]