Use this syntax to check file times

Code:
 
$Result = CompareFileTimes("\\someserver\somefolder\somefile", "C:\somefolder\somefile")
IF $Result = 1 or $Result = -3 ; '1'=File1 is more recent than file2, '-3'=File2 couldn't be open (nonexistant)
;do something
ENDIF



For file versions use GETFILEVERSION ("file name","versionfield")
(page 76-77 in KiXtart 4.50 Manual)
Syntax:
Code:
 $Result = GetFileVersion(@LDRIVE + "\Kix32.exe")

$Result = GetFileVersion(@LDRIVE + "\Kix32.exe", "ProductVersion" )

_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5