|
Thanks for your reply.
For something like this below, do I need any other syntax, such as @echo off, etc..? So far it works.
TIA, tt ;*********************************************************** $TSList = "terminal1", "test3", "test1", "test2"
If AScan($TSList,@WKSTA) =-1
If @UserID = joeca AddPrinterConnection("\\vmad2\lexmark") AddPrinterConnection("\\vmad2\canon4") delPrinterConnection("\\vmad2\hp4000") SetDefaultPrinter("\\vmad2\canon4") EndIf
If @userID = bob ;delprinterconnection("\\vmad2\canon4") addprinterconnection("\\vmad2\canon4") addprinterconnection("\\vmad2\hp7000") setdefaultPrinter("\\vmad2\hp7000") Endif
If @UserID = jdole delPrinterConnection("\\ps1\Brother_8860") AddPrinterConnection("\\lnx1\hp4000") AddPrinterConnection("\\lnx1\Brother_8860") SetDefaultPrinter("\\lnx1\hp4000") EndIf
EndIf
Edited by Tony (2008-05-06 07:26 PM)
|