Hi,

I want to share this because I have received a lot of help from this forum. I solved my problem with this script:

;--------Start IF_ELSE.kix--------
If Left(@WKSTA, 1) = "e"

SHELL "c2pe9.bat"

endif


;-------- end IF_ELSE.kix--------

If the first character of the workstation hostname begins with an "e" a batch file is executed which uses the con2prt.exe to map a specific printer.

PS, i couldn't find how to put my code into code tags. Sorry.