just has a couple of minutes spare time.

i've test this, and the xdclient run without error(at least not noticable), and the environment variable is present.
 Code:
$ComputerPrt = left (@wksta, 6)
select
case $ComputerPrt = "VA-CTX"
run "\\server\netlogon\XDClientName.exe"
endselect
 


how to load the rest of the script? do i need a other kix script from the above? or can this run whithin the same script. How to combine these two?

 Quote:

$ComputerPrt = IIf(%XDClientName%,%XDCLientName%,@WKSTA)
$ComputerPrt = Left($ComputerPrt, 6)


select
case $ComputerPrt = "LA-ROO"
AddPrinterConnection ("\\VA-PRN-001\printer1")
SetDefaultPrinter("\\VA-PRN-001\printer1")

case $ComputerPrt = "LA-DOC"
AddPrinterConnection ("\\VA-PRN-001\printer1")
AddPrinterConnection ("\\VA-PRN-001\printer2")
SetDefaultPrinter("\\VA-PRN-001\printer1")

endselect


thanks


Edited by arjanv (2011-06-09 04:02 PM)