Welcome to the board,

if you use a later Kixtart version (since 4.x) you can do that by a split:

Code:

break on

$string = "Client\computername#\\\server\HP LaserJet 4100 PCL 6"

$Printername = split($string, "\")[ubound(split($string, "\"))]

"Printername = " + $Printername

get $

exit 1




hth
_________________________