How about;
:updatekix
$updatekix= CompareFileTimes( %WINDIR%\kix32.exe, @LDRIVE\kix32.exe)
if $updatekix = -3 or $updatekix = -2
messagebox("Error @Error","",64)
endif
if $updatekix = -1
messagebox("Local Kix version needs updating","",64)
COPY "@LDRIVE\Kix32.exe" "%WINDIR%\kix32.exe"
if @Error <> 0
messagebox("Error @Error","",64)
sleep 15
endif
COPY "@LDRIVE\kx16.dll" "%WINDIR%\kx16.dll"
COPY "@LDRIVE\kx32.dll" "%WINDIR%\kx32.dll"
COPY "@LDRIVE\kx95.dll" "%WINDIR%\kx95.dll"
endif
if $updatekix = 0
messagebox("Kix version is OK","",64)
endif
if $updatekix = 1
messagebox("Kix version is newer then Serverversion!!!!","",64)
if @FULLNAME = "Eddy Croezen"
messagebox("Serverversion of Kix is beeing updated","",64)
else
messagebox("What the xxx are you doing with this new kix version","",64)
endif
endif
return
The problem with this solution is that I get an error 32!! Because Kix32.exe is in use ?
------------------
Eastborn Slaapsytemen BV * Eddy Croezen