Re: user variable PATH reset
- From: "Wesley Vogel" <123WVogel955@xxxxxxxxxxx>
- Date: Mon, 8 May 2006 20:23:42 -0600
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
.
- Follow-Ups:
- Re: user variable PATH reset
- From: Peter_W_Levine@xxxxxxx
- Re: user variable PATH reset
- References:
- user variable PATH reset
- From: Peter_W_Levine@xxxxxxx
- user variable PATH reset
- Prev by Date: Re: Anti-gravity and securing Windows XP
- Next by Date: Re: already activated xp keeps trying to activate
- Previous by thread: user variable PATH reset
- Next by thread: Re: user variable PATH reset
- Index(es):
Relevant Pages
|