#128239 - 2004-10-21 01:51 PM
Case / Ingroup
|
Larve_Q
Fresh Scripter
Registered: 2004-10-14
Posts: 8
|
Hi,
Can I use a Ingroup under a case, like this script below?Because I can't get it to work.
Case $Gateway="10.113.0.1" If InGroup("Pri-NL-Administratie") If AddPrinterConnection ("\\amssrv050\HP4300 IFS Administratie PCL6") = 0 EndIf EndIf
Case $Gateway="10.113.0.1"
If InGroup("Pri-NL-Automatisering") If AddPrinterConnection ("\\amssrv050\HP4000TN Administratie RAYE PS") = 0 EndIf EndIf EndSelect
Grt.
Larve
|
|
Top
|
|
|
|
#128243 - 2004-10-21 02:09 PM
Re: Case / Ingroup
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
#128245 - 2004-10-21 10:44 PM
Re: Case / Ingroup
|
Larve_Q
Fresh Scripter
Registered: 2004-10-14
Posts: 8
|
Thnx for the script… Again (Going to try it first thing in the morning)
I saw there was a little copy/paste error in my sample script. Off course the second case uses a different gateway.
Grtz
Larve
|
|
Top
|
|
|
|
#128246 - 2004-10-21 10:50 PM
Re: Case / Ingroup
|
Larve_Q
Fresh Scripter
Registered: 2004-10-14
Posts: 8
|
Quote:
Quote: --------------------------------------------------------------------------------
but why the conditional check on Addprinterconnection?
--------------------------------------------------------------------------------
My guess is to silence the return, or it was a simple copy/paste from the manual.
I’m afraid it’s a simple copy/paste from the manual…. 
Gtr.
Larve
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|