Page 1 of 1 1
Topic Options
#37754 - 2003-03-11 10:36 PM How do I write IF Ingroup and use mappings
csalloum Offline
Lurker

Registered: 2003-03-11
Posts: 2
I am trying to use the IF INGROUP command with the use x:\\servername\share to map drives to domain groups. However, I keep getting errors and I can't read the errors as the script goes through without pausing. How do I write the script? Thanks.
Top
#37755 - 2003-03-11 10:40 PM Re: How do I write IF Ingroup and use mappings
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use DEBUG ON to debug your script. This is documented in the KiXtart Manual. There are also a lot of example code snippets posted throughout the various forums.

Without you posting your code we won't be able to assist you.
_________________________
There are two types of vessels, submarines and targets.

Top
#37756 - 2003-03-11 10:54 PM Re: How do I write IF Ingroup and use mappings
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

First, a welcome to the board.

Another way to do:
code:
USE X: "\\servername\share$$"
? "status X-drive: @error (@serror)"

IF (Ingroup("admin") <> 0)
USE P: "\\servername\share"
? "status P-drive: @error (@serror)"
ENDIF

When you doesn't like including all kind of additional statements please
read our FAQ-topic Debugging script without user input. also during logging on. the advanced way.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org