Re: Environment Variables...
- From: "GTS" <x>
- Date: Mon, 28 Nov 2005 16:50:43 -0500
There used to be a Microsoft utility called Winset that could do this in
Windows 9X. To my knowledge, there is no equivalent for NT versions of
Windows. The Evar can be added to the registry by a .reg file but will not
be globally visible until the next reboot or logon. Better would be a vbs
script to add the Evar to the registry and broadcast a message to update the
global availability. See the article below-
How to propagate environment variables to the system
http://support.microsoft.com/?kbid=104011
--
"Steven Sinclair" <StevenSinclair@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:59F55D61-BF3B-45E7-9239-1C8F6EDFF0AA@xxxxxxxxxxxxxxxx
> Start
> Control Panel
> System
> Advanced
> Environment Variables
>
> Under the "System variables" section...
>
> Is there any way to set a system variable from the command-line? When
> installing a corporate application, I want to set a variable from a batch
> file. Then, later on, read that variable from a batch file and make
> appropriate changes based on that variable. When using the "set" command
> from
> a command-line, the variable only remains set while that specific command
> window is open. I need to be able to set the variable to a specific value,
> have it remain constant, and be able to change it using a batch file under
> a
> command window.
>
> Thanx.
.
- Follow-Ups:
- Re: Environment Variables...
- From: Torgeir Bakken \(MVP\)
- Re: Environment Variables...
- Prev by Date: Re: Password query!
- Next by Date: Re: Setting default Open program fails
- Previous by thread: Re: windows Picture & Fax viewer error
- Next by thread: Re: Environment Variables...
- Index(es):
Relevant Pages
|
Loading