Page 1 of 1 1
Topic Options
#171352 - 2006-12-12 08:35 AM modify PATH using Kixtart in Citrix enviro
GSI Offline
Lurker

Registered: 2006-12-12
Posts: 1
Hi,
what is the easiest way to modify (append to) PATH environmental variable in the Citrix environment. I have 3 different append strings depending on membertship in the group (if it was one I would just change the global variable)?
Thx for any suggestion.

Top
#171353 - 2006-12-12 09:54 AM Re: modify PATH using Kixtart in Citrix enviro [Re: GSI]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Not tested and not best practice coding (vars in strings) but I guess something like this should work.

Code:
Break on

$path = %path%
$addtopath1 = "stuff"
$addtopath2 = "morestuff"
$addtopath2 = "evenmorestuff"

If InGroup ("group1")
	$path = $path + $addtopath1
	Set "path=$patht"
EndIf
If InGroup ("group2")
	$path = $path + $addtopath2
	Set "path=$path"
EndIf
If InGroup ("group2")
	$path = $path + $addtopath3
	Set "path=$path"
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.104 seconds in which 0.055 seconds were spent on a total of 13 queries. Zlib compression enabled.

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