I'm not sure I understand what you are asking for, so here is a fully working scriptlet which will break a UNC path into server and path elements:
code:
$sUNCPath="\\MyServer\path\on\server"

$iIndex=InStr(SubStr($sUNCPath,3),"\")
$sServerName=SubStr($sUNCPath,1,$iIndex+1)
$sRestOfPath=SubStr($sUNCPath,$iIndex+2)

"Server name is " $sServerName ?
"Rest of path is " $sRestOfPath ?

The confusion must be contagious.