My "PATH" is lost

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
 
J

J-P Roberts

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 ;-).
 
H

Harry

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
 
J

J-P Roberts

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
 
J

John Phillips

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top