#35492 - 2003-01-22 01:38 PM
If Ingroup + Variables
|
Mike Duhwald
Fresh Scripter
Registered: 2003-01-13
Posts: 40
|
Hi Forum Users, I want to create a a script which check the membership of the user an than set some variables depending of this membership.
How can I realize this?
Regards Mike
|
|
Top
|
|
|
|
#35493 - 2003-01-22 03:23 PM
Re: If Ingroup + Variables
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Search the board and manual for INGROUP, ENUMLOCALGROUP, and ENUMGROUP. then couple that with the IF...Endif construct. [ 22. January 2003, 15:24: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#35494 - 2003-01-22 05:26 PM
Re: If Ingroup + Variables
|
Mike Duhwald
Fresh Scripter
Registered: 2003-01-13
Posts: 40
|
Hi, thanks for your answer. A nice bunch of Tipps I found there... - but I must SET more than one environment variable in this if...endif loop. how can I glue this together?
Regards Mike
|
|
Top
|
|
|
|
#35495 - 2003-01-22 05:40 PM
Re: If Ingroup + Variables
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Do you have any code for us to examine that would better clarify your needs?
|
|
Top
|
|
|
|
#35496 - 2003-01-22 06:22 PM
Re: If Ingroup + Variables
|
Mike Duhwald
Fresh Scripter
Registered: 2003-01-13
Posts: 40
|
Hi, for sure:
If Ingroup xxxx SET TEST=xxx + SET TEST1=XXX + SET .. + .. use X: "\\SERVER\SHARE" Endif
Regards Mike
|
|
Top
|
|
|
|
#35497 - 2003-01-22 06:32 PM
Re: If Ingroup + Variables
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I must be thick today. Can you explain what you are trying to accomplish by:
SET TEST=xxx + SET TEST1=XXX + SET .. + ..
I can't find any logic in it. quote: Set
Action: Sets environment variables in the environment of the current user (HKEY_CURRENT_USER\Environment). Syntax: SET "variable=string" Remarks: After any change to the environment, KiXtart informs running programs that the change was made, prompting them to regenerate their environments. Programs that support this feature (such as Program Manager, Task Manager, and Windows Explorer) update their environments when they receive the WM_SETTINGCHANGE message. The environment of the current process (KiXtart 95) is not affected. This command does not work on Windows 9x. As an alternative, use the SHELL command to run Winset.exe. (Winset.exe is included on the Windows 9x CD.) See Also: SetL, SetM
|
|
Top
|
|
|
|
#35499 - 2003-01-23 08:05 AM
Re: If Ingroup + Variables
|
Mike Duhwald
Fresh Scripter
Registered: 2003-01-13
Posts: 40
|
Hi, for sure. I want to set some environment variables in a row. In Batch I can set them by:
SET SERVER=W2KSRV&& SET EXCHANGE=E2KSRV && ...
Now I want this variables and the drivemapping be set by groupmembership with KIX. I hope that I explained it better than before!?
Regards Mike
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 384 anonymous users online.
|
|
|