Rob,

I get Hotmail messages with titles like that! [Wink]

How about trying something like this:

code:
$x = "\\servername\sharename"
$x = Left($x,Len($x)-7)
? $x

Assuming that you will always be trimming exactly 7 characters of the end of the string.

If what you actually want to do is return the servername from a string like the above, then I suggest using the Split() function to create an array of the discrete chunks of the string separated by "\", then reconstituting the "\\servername" part by choosing that element of the array.

I would suggest you read the fine manual, and search the FAQ forum on this board to get more idea of how to do this.

-Breaker
_________________________
================================================
Breaker