recentpopularlog in

kme : labcomputer   3

administrator - Change environment variables as standard user (Windows 7) - Super User
Looking for a solution to set environment variables without having access to the System control panel in order to do this (http://stackoverflow.com/a/11763013) with Eclipse and EGit.
Just type “environment” into the start menu (or press Win+W in Windows 8 and search there). One option you are presented will be “Edit environment variables for your account”.

Similarly, searching for “environment” in the control panel yields that option, too.

Generally, I have noticed that simply searching for something in the start menu or control panel is much faster than trying to remember a series of icons, dialogs, etc. one has to access to find something. At least for the vast majority of tasks1.

A little digging yields that

rundll32 sysdm.cpl,EditEnvironmentVariables
is the command used to present that dialog. You can put a shortcut to that somewhere if you like.
windows  labcomputer  environmentvariable  eclipse  egit  solution 
may 2014 by kme
Is there any command line tool that can be used to edit environment variables in Windows? - Super User
Looking for a solution to set environment variables without having access to the System control panel in order to do this (http://stackoverflow.com/a/11763013) with Eclipse and EGit.
I don't know any tool that does this, but maybe you can use the regcommand:

reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path
to read the current path, and

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /d "newPath" /f
to write your new value.

You need admin rights for hsving right acccess in HKLM. If that is a problem, consider modifying the user specific path setting in HKCU\Environment instead.

Also interesting:
If you need a generic way to set any environment variable and have the changes persist, then setx.exe would be the tool to use. It cannot do the "smart" things you are asking for, though...

setx.exe is included with Windows Vista or later; if you use an earlier version of Windows, you can use the above download link to get it.
windows  registry  environmentvariable  labcomputer  nonadmin  cli  maybesolution  eclipse 
may 2014 by kme

Copy this bookmark:





to read