ok i try this one and it works fine:

Code:

break on

if substr(@wksta,1,5) = "PTE07";
$retval = AddPrinterConnection("\\PTE0705A06\HP705")
$retval = SetDefaultPrinter("\\PTE0705A06\HP705")
endif



But still have some problems to set as a default printer...is the syntax correct ?

BAL.