Monday, December 12, 2016

64 bit - Can I change the PATH environmental variable in Windows 7 without restarting?


Is there anyway to change the PATH environment variable (or variables in general) on Windows 7 Exterprise (64 bit) and have it take effect in PowerShell or the command prompt (cmd.exe) without requiring a restart?


I don't mind having the reopen the shell/prompt, but having to restart is too much.


I'm currently changing variables through Advanced Systems settings ->Environment Variables`.


Answer



The requirement really isn't "must restart", it's "must log out/log back in" -- mostly for your current user processes to pick up the change.


If all you're interested in is for the variable changes to take effect in a command window or power shell, starting a new shell after making said changes should be all that's needed.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...