Page 1 of 1 1
Topic Options
#122512 - 2004-07-09 07:23 PM Adding to environment path
ScriptMaster Offline
Lurker

Registered: 2004-07-09
Posts: 1
Just wondering if there is a simpler way of adding to an environment path. What I'm currently doing is reading it to a variable(using vbscript) and then appending to it.
Top
#122513 - 2004-07-09 08:04 PM Re: Adding to environment path
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Since you don't show how you do it in VBS, can't be sure if the KiX way is simpler. The methodology would be pretty much the same, just using KiX commands.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#122514 - 2004-07-09 11:49 PM Re: Adding to environment path
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
There is at least one if not more UDFs that do this task.
Top
#122515 - 2004-07-10 03:37 AM Re: Adding to environment path
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The UDF that I know of hacks the registry. What's wrong with a little string manipulation and one of the KiX SET commands?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#122516 - 2004-07-11 05:09 AM Re: Adding to environment path
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The result in both cases is the same as SET would also manipulate the registry.
_________________________
There are two types of vessels, submarines and targets.

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.061 seconds in which 0.031 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