ARRRGGGHHH !
After all your hard work I make 1 change and the whole thing goes to bits.
I tried to make a different log file as the
sdat file is too large we hv 2000+ users.
all i wanted was the userid ver no. and time / date. And now i get errors , as i am new to Kix could someone give me a hand ... again sorry folks.Heres the code from thabeck that I changed[code]
:McAfeeUpdate
? "Checking McAfee definition files"
; obtain DAT version on client system
$Result=Readvalue("Hkey_Local_Machine\Software\Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx","szDatVersion")
$ClientDATVer = (0 + SUBSTR($Result, LEN($Result) - 3, 4))
; obtain approved released DAT version
$Result = ReadProfileString("\\Server\LatestDATs$\config.ini", "VirusScan Engine", "VirusDefinition")
$AppDATVer = (0 + SUBSTR($Result, LEN($Result) - 3, 4))
; determine if SDAT needs to be launched
if $ClientDATVer < $AppDATVer
; DAT version on Client is older than that on the server - Run SDAT
$SDAT = ReadProfileString("\\Server\LatestDATs$\config.ini", "VirusScan Engine", "SDATFileName")
SHELL ("%comspec% /e:1024 /c Start /w \\Server\LatestDATs$\$SDAT /s")
else
; DAT version on Client is the same version or newer than that on the server - Do nothing
open(1,"\\server\latestdats$\datlog.txt",5)
writeline(1,"@userid,$appdatver” + @TIME + Chr(13) + Chr(10) )
Close(1)
endif
In anticipation...
Steve ( the foolish novice)
[This message has been edited by Guru (edited 11 February 2001).]