Re: Environment Variables...
- From: "Wesley Vogel" <123WVogel955@xxxxxxxxxxx>
- Date: Mon, 28 Nov 2005 22:15:39 -0700
Open a command prompt, type set /? and hit enter.
Start | Run | Paste this in the box and click OK...
hh ntcmds.chm::/set.htm
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:B9B57508-42CC-4FD5-97F1-24BF61ABE279@xxxxxxxxxxxxx,
Steven Sinclair <StevenSinclair@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and
pecked:
> Gotchya.
>
> So, from a command prompt, within a batch file, how could I accomplish
> this?
>
> Say I want to create a system variable called "ServerPointer" and set it
> to a value of "10.20.30.40". Then, the goal is to be able to run a batch
> file at any time that could look at the value of said variable and "swap"
> it based on its current value. If it is set to "40", change it to "50"
> and vice-versa.
>
> Thanx again.
>
> "GTS" wrote:
>
>> 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.
.
- References:
- Re: Environment Variables...
- From: GTS
- Re: Environment Variables...
- Prev by Date: Re: Trouble with command prompt
- Next by Date: Re: How to switch to DOS??
- Previous by thread: Re: Environment Variables...
- Next by thread: Re: Environment Variables...
- Index(es):
Relevant Pages
|