Change
 Code:
	$PtrMapState = $PriMapState("\\" + $OldServer + "\" + $Ptr)
to
 Code:
	$PtrMapState = PriMapState("\\" + $OldServer + "\" + $Ptr)
, include the PriMapState UDF and you should be good..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D