Hi.
Thanks for the quick reply!
But this example does not work. Here it goes into THEN twice and also runs ELSE once.

I wonder, why the original KIX example for Comparefiletimes
uses almost the same code than I did.

 Code:
$Result = CompareFileTimes(@LDRIVE + "\USER.INI", "C:\WINDOWS\USER.INI")
IF $Result = 1 OR $Result = -3
  COPY @LDRIVE + "\USER.INI" "C:\WINDOWS\USER.INI"
ENDIF 



Edited by lho (2008-07-14 03:04 PM)