Sunday, July 27, 2014

windows - delete items from path environment variable


I have a question regarding editing the path environment variable on my windows 7 Machine. I have been editing my path using SystemPropertiesAdvanced.exe's dialog window, but the changes i make are not reflected when I type echo %PAtH% on the command line. It shows my additions of path variables, but does not remove the unwanted path variables I deleted. How do I get echo %PATH% and the advanced system properties to display the same path variables?


Thanks in advance,


dubbbdan


Answer



User environment variables



User environment variables can be viewed from Control Panel as well.
The user may add, delete or modify the environment variables in the
User Environment Variables for User field. These variables take
precedence over system environment variables. The user path is
appended to the system path
.



Next commands could help to identify the problem (return system-level defined path and user-level defined path, respectively):


reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path
reg query HKCU\Environment /v Path

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...