View Single Post
  #3  
Old July 25th 13, 10:35 AM posted to microsoft.public.win98.gen_discussion
R.Wieser
External Usenet User
 
Posts: 111
Default Adding a persistent environment variable. How ?

Hello 98 Guy,

Are you looking for a method to do that under win-9x?


Yep. That is why I did post the question here and not in, for example
microsoft.public.windowsxp.help_and_support. :-)

I don't believe that win-9x supports any of the above types
except for "process", as mentioned he snip link


Well, I can store and retrieve from those sections, and the "system" and
"user" and "volatile" sections do seem to be persistent (I just checked if
the settings I stored yesterday are, after having shut down the 'puter
yesterday and rebooted today, still present. They are. Even in the
"volatile" section ...).

For win-9x, you just need to programatically edit the
autoexec.bat file to add new environment variables
(and restart the system).


Grmbl .... I thought I did already try that and didn't work. Just to make
sure I retried just now and it did. I must have done something wrong
previously. Thanks for having me retry it. :-)

Any idea if I can add to the "process" environment by other means (from
within a VBScript (or program) ) ?

Regards,
Rudy Wieser


-- Origional message:
98 Guy schreef in berichtnieuws ...
"R.Wieser" wrote:

I have the need to add an environment variable that will be visible
to all processes (a fake "LOGONSERVER" for a stand-alone). I've
found several ways to add them to "system", "user" and even
"Volatile" sections, but found no way to add them to "process".

Ultimatily I would like to be able to copy, using vbscript, a few
environment variables from the "user" section to the "process"
section.

Any idea how to do it ?


Are you looking for a method to do that under win-9x?

I don't believe that win-9x supports any of the above types except for
"process", as mentioned he

http://wsh2.uw.hu/ch07c.html

For win-9x, you just need to programatically edit the autoexec.bat file
to add new environment variables (and restart the system).