Page 1 of 1 1
Topic Options
#61682 - 2001-12-27 02:19 AM InGroup
Ialejo Offline
Lurker

Registered: 2001-12-27
Posts: 2
Loc: Woodland Hills
Hi,

I'm having a problem using the Ingroup statement for Win9x systems. I am running Kixtart on an NT network environment. Although the Ingroup statment works fine for NT/2000 machines, it does not on Win9x systems. I have verified that the .DLL files are there, and I have the KXRPC service running on the PDC and BDCs, but no success.
For example:

If Ingroup ("CA-TO-GM")
ENDIF
Run "Net use J: \\Servername\Share"

If Ingroup ("CA-WH-WP")
ENDIF
Run "Net use K: \\Servername\Share"

Quit

Any help is appreciated.

Ialejo
[EMAIL]null[/EMAIL]

_________________________
IA

Top
#61683 - 2001-12-27 11:04 AM Re: InGroup
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Hello Ialejo and Welcome to the board.

Maybe try something like this.

code:

If Ingroup ("CA-TO-GM")<>0
use J: "\\Servername\Share"
ENDIF


If Ingroup ("CA-WH-WP")<>0
use K: "\\Servername\Share"
ENDIF

QUIT


The <>0 helps to verify membership for either local or domain.

You do not appear to be doing any real checking, your code to run is outside the IF statement. KiXtart supports mapping drives without shelling out and running the NET USE command.

Without really running your code I would assume that regardless of membership... All systems that "understand" your code would map both J: and K: every logon regardless of group membership since it comes after the IF ENDIF statement.

As the code looks here, the NT/2000 machines should not be running it any better then Win9x systems. Except that they may understand the Run "Net use J: \\Servername\Share" statement and the Win9x systems are actually erroring on it.

Give the code above a try and let us know how it goes.

[ 27 December 2001: Message edited by: NTDOC ]

Top
#61684 - 2001-12-27 11:15 AM Re: InGroup
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
code:

If ingroup ("CA-TO-GM")
use j: "\\Server\Share"
endif

If ingroup ("CA-WH-WP")
use K: "\\Servername\Share"
endif

quit


should do it also ...

J.

_________________________



Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.05 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