Re: What's the registry key to alter the PATH environment in an MS-DOSprompt
M.I.5¾ wrote:
>> Instead of altering the registry, you can use the UI. Right click on My
>> Computer and select Properties. This will bring up your System
>> Properties. Go to the Advanced tab and click the Environment Variables
>> button. There you can modify all environment variables, including PATH.
>
> This will not affect the PATH in a command window.
You need to figure out what is wrong with your command window as it
works perfectly here. It modifies the path for all applications
including cmd.exe. If cmd.exe is already running prior to you making
the change to path, then you need to exit that command window and start
a new one. The new command window will pick up the change made to any
environment variables, including path.
>> In the registry, there are two different keys depending on whether you
>> want the portion of the path that applies to all users (the machine
>> version) or to a specific user. The two locations are:
>>
>> HKCU\Environment
>> HKLM\System\CurrentControlSet\Control\Session Manager\Environment
>
> This will not affect the PATH in a command window.
I will not repeat the same comment as you have done, simply read again
what I said above. The only difference is if you only change the
registry key then you'll also need to do something to make sure an
environment settings change message is broadcast to the system. Once
that is done, any applications that listen for those, or any
applications that are started after the broadcast, including a new
command window, will be running with the new environment settings.
--
Tom Porterfield