Hey guys,

I am trying to rename a file on a PC if it exists then copy a file from a server to a PC as a new name. Here's what I've got but the syntax is wrong. Can anyone help?
Code:
  


Dim $mapir
$mapir="C:\Program Files\Common Files\System\Msmapi\1033"
If Exist $mapir +"\"mapir.dll
REN $mapir +"\"mapir.dll $mapir"\"mapir.old
COPY "\\mnc17p1s\NETLOGON\batch\mapirnew.dll" $mapir +"\" mapir.dll
End If
Code:
  



Thanks & try to hold back the laughs,
John