here's what i've tried and don't seems to work...

Code:

break on

if substr(@wksta,1,3) = "PTE"
$Room = substr(@wksta,4,4)
if substr($Room,1,1) = "0" $Room = substr($Room,2) endif ;
$retval = AddPrinterConnection("\\PTE0705A06\HP"+$Room)
$retval = SetDefaultPrinter("\\PTP0705A06\HP"+$Room)
endif



Isn't it suppose to connect a printer ? i try this one with kixtart version 4.50 any idea ?

BAL.