Re: Environment Variables...



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.

.



Relevant Pages

  • Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Focus-IDS)
  • [Full-Disclosure] Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Full-Disclosure)
  • Re: How To Execute Batch File Line By Line
    ... COMMAND /C string Carries out the command specified by string, ... CMD /C Carries out the command specified by string and then terminates. ... Both .cmd and .bat files work on Windows NT versions. ... File Description MS-DOS Batch File ...
    (microsoft.public.windowsxp.general)
  • Re: Great SWT Program
    ... Windows' default command line buffer is explained in detail here: ... For the purposes of a batch file, ... then put the files from the working directory back. ...
    (comp.lang.java.programmer)
  • RE: blues screen on loading windows XP
    ... the installation disk, insert it into your cd-rom and restart your computer, ... it will take you to another black screen with a command prompt. ... Boot your problem computer with this CD, open a Command Prompt window, ... but Windows did not start successfully. ...
    (microsoft.public.windowsxp.help_and_support)

Quantcast