Rad,

Maybe I am wrong, but why wouldn't this work?
code:
; Get the present SuperDAT filename
$sDATString=DIR ($appsPATH + "SuperDAT\sdat*.exe")

; Parse the SuperDAT string for the version number
$sDATVer=SUBSTR($sDATString,5,4)

$VS45DATValue = READVALUE($RegPath + "Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx","szDatVersion")
$VS45DATNum = SUBSTR($VS45DATValue,5,4)

IF VAL($sDATVer) > VAL($VS45DATNum) ; if the SuperDAT is not up-to-date
GOTO "SuperDAT"
ELSE
...

Thanks,

Kent

[ 04. January 2003, 04:29: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's