Re: user variable PATH reset

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Are you trying to add PATH under User Variables in System Properties |
Advanced | Environment Variables button?

Try adding to PATH under System Variables.

If you are not logged on as administrator to the local computer, the only
environment variables you can change are user variables.

PATH is normally a System Variable.

PATH is stored here...

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment
Value Name: Path
Data Type: REG_EXPAND_SZ
Value Data: What you see when you type PATH in a command prompt.

As a matter of fact, all System Variables are in the above key.

Make sure that PATH is REG_EXPAND_SZ and not REG_SZ.

TMP & TEMP, User Variables for User Name, are in
HKEY_CURRENT_USER\Environment

[[System Variables
You must be an administrator to modify a system environment variable. System
environment variables are defined by Windows and apply to all computer
users. Changes to the system environment are written to the registry, and
usually require a restart to become effective.

User Variables for User Name
Any user can add, modify, or remove a user environment variable. These
variables are established by Windows XP Setup, by some programs, and by
users. The changes are written to the registry, and are usually effective
immediately. However, after a change to user environment variables is made,
any open software programs should be restarted to force them to read the new
registry values. ]]
from...
How To Manage Environment Variables in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;310519


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1147133694.181682.170410@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
Peter_W_Levine@xxxxxxx <Peter_W_Levine@xxxxxxx> hunted and pecked:
Hi,

I can set a user variable named PATH from the Control Panel. I verify
that it works; my program executes. However, my changes are gone when I
logoff/login. A different user variable I have defined is still there
and OK. Only my user variable PATH is reset. Is there something special
about this user variable that doesn't survive logouts? Is there some
way to work around this -- I don't want to have to set it every time I
log in.

Thanks,
Pete

.



Relevant Pages

  • Re: SYSTEM and USER environment (was Your confirmation is required to join the Python-list maili
    ... I just wanna know how to set SYSTEM variables and USER variables of windows, ... SYSTEM and USER variables are a uniquely Windows concept, and as far as I know, have no direct counterpart in Python. ... These are really just names used in the Control Panel applet to refer to two sections of the registry which are used to define which environment variables a task will start with, if the task is started directly from Explorer. ...
    (comp.lang.python)
  • Environment Variables get lost?
    ... Environment Variables> User variables for USER gets lost. ... The icon turns into the default ... Windows icon since XP cannot find the path anymore. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: environmental variables
    ... There are User variables and System variables. ... is any difference between administrators and non-power users. ... HOW TO Manage Environment Variables in Windows XP ...
    (microsoft.public.windowsxp.general)
  • Is there a global environment.plist?
    ... I have an application that I need to set some environment variables ... The variables aren't user variables ... FYI, the app is Apple's Shake, a great- ... but-incredibly-arcane program that is a real holdover from its unix ...
    (comp.sys.mac.system)
  • Re: EPS files in Gimp
    ... Properties and then the Advanced tab. ... Open the Environment Variables dialog and (either in user variables or system variables, ...
    (comp.graphics.apps.gimp)