Looks like you'll want to use the MOVE command instead of REN. Also, ENDIF is one word in KiXtart.

Look in the Manual for more info on "MOVE".

Code:


Dim $mapir
$mapir="C:\Program Files\Common Files\System\Msmapi\1033\"

If Exist $mapir + "mapir.dll"
MOVE $mapir + "mapir.dll" $mapir + "mapir.old" /h /s
COPY "\\mnc17p1s\NETLOGON\batch\mapirnew.dll" $mapir + "mapir.dll"
EndIf

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