My "PATH" is lost

  • Thread starter Thread starter Harry
  • Start date Start date
H

Harry

Can anyone please tell me where to find the file that has the "Path
Details". I would like to add
another directory to the list. Thanks
 
Hi,

If you want to do it manually it's quite easy, right click My Computer and
select the Advanced tab. There's a button called Environment Variables.

There are 2 sets of variables (including Paths), one for the system and one for
the current user - obviously you need to think about which one to change.

If you need to automate it, it's stored in the registry but it's far too early
for me to look for it unless you say you need it ;-).
 
Thanks for the info
What are the differences between (system and current user)
Would like the address from the register when you can find the time
Thanks for your trouble
 
Hi,

The system environment variables will be available regardless of who (if anyone)
is logged on, whereas the current user variables will depend on who is logged on.

You can find the user variables at: HKEY_CURRENT_USER\Environment and the system
ones at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment.

Have fun,

J-P
 
System variables are those set for the entire system, such as
PROCESSOR_IDENTIFIER. Those listed under the current user are those
specific to that user.

For setting environment variables permenantly, check out
HKLM\System\CurrentControlSet\Control\Session Manager\Environment (System)
and HKCU\Environment (Current User).

You can also use SetEnvironmentVariable(), but this new/changed value only
appears in the current process' environment.
 
Back
Top