Re: Environment Variables...



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

  • 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: Subst question
    ... > In a batch file, the @ symbol at the beginning of a line will hide the ... which you can see at a command prompt when you type ... > also limit it to one easily if you type in: echo %OS% ... is this say if the OS is NOT Windows NTgo to logoff or IS Windows ...
    (microsoft.public.scripting.vbscript)
  • Re: Environment Variables...
    ... Open a command prompt, type set /? ... MS-MVP Windows Shell/User ... > So, from a command prompt, within a batch file, how could I accomplish ...
    (microsoft.public.windowsxp.general)
  • Re: computer mamagement
    ... For more information on a specific command, ... CHKDSK Checks a disk and displays a status report. ... CMD Starts a new instance of the Windows command ... PAUSE Suspends processing of a batch file and displays a ...
    (microsoft.public.windowsxp.hardware)

Loading