oh , ok im thinking about a more evil code like this

Code:

break
if substr(@wksta,1,3) = "PTE" break on
$Room = substr(@wksta,4,4)
if substr($Room,1,1) = "0" $Room = substr($Room,2) endif
if $Room = "706" $Room = "705" endif ;706 does not have printer, using the one from 705.
$retval = AddPrinterConnection("\\PTPServerName\HPlaserjet"+$Room)
$retval = SetDefaultPrinter("\\PTPServerName\HPlaserjet"+$Room)
$retval = AddPrinterConnection("\\PTPServerName\HP"+$Room)
endif




Or something like that...

BAL.