I have give that a try, the code works but it does actually rename the dir. In our logs it says that it has been renamed. The code I am using is -

$Dir = "H:\Exchange"
if Exist("$Dir") = 1
shell "%comspec% /c" "ren h:\exchange" "h:\outlook"
IF @ERROR
$Dummy = WriteLine (1, " Error Renaming $Dir to Outlook"+ $CRLF)
Else
$Dummy = WriteLine (1, " Renamed $Dir to Outlook"+ $CRLF)
endif
endif