Quantcast
Channel: Setting environment variables and appending to system-wide %PATH% with a Windows batch file - Super User
Browsing latest articles
Browse All 4 View Live

Answer by Catch22 for Setting environment variables and appending to...

I've found that placing the /M switch early does the trick, even though they want you to place it at the end. So for instance, this works: setx /M PATH "%PATH%;C:\AddYourPathHere" But this doesn't:...

View Article



Answer by wendy.krieger for Setting environment variables and appending to...

If you use %var%, it is expanded at use. If you want to set a variable to include %var%, you need to write %%var%%. Note also the registry settings are not seen by the current process, but are seen...

View Article

Answer by Scott for Setting environment variables and appending to...

Part of your problem is that SETX isn’t SET –– after you do setx JAVA_HOME "C:\Program Files (x86)\Java\jdk1.7.0_21" /m …, %JAVA_HOME% isn’t set in that instance of the Command Prompt.  You’d have to...

View Article

Setting environment variables and appending to system-wide %PATH% with a...

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images