I have a simple UDF to either insure that a system name has the leading/trailing slashes, or doesn't. If you use this, you'd want to specify the REVERSE flag to remove the slashes.

Glenn


Code:

Function SNVerify($System, Optional $Reverse)

; start by stripping all '\' characters
$SNVerify = Join(Split($System, '\'), '', 3)

; add leading & trailing slashes if needed
$SNVerify = IIf(Not $Reverse And $SNVerify <> '', '\\' + $SNVerify + '\', $SNVerify)

Exit 0

EndFunction

_________________________
Actually I am a Rocket Scientist! \:D