When using windows , one the feature which i miss is use of scripts to do lots of things we can do in Linux
To set the deterministic development environment rapidly i use the Rapid Environment Editor
You can use the bat script to manage all environment variables.
Here is example
set_env.bat
rem This is a comment
rapidee -C JAVA_HOME
rem rapidee -S JAVA_HOME "C:\Program Files\Java\jdk1.8.0"
rapidee -S JAVA_HOME "C:\Program Files\Java\jdk1.7.0_51"
rapidee -S MVN_HOME G:\dev\tools\apache-maven-3.1.1
rapidee -S SCALA_HOME G:\dev\tools\scala\scala-2.10.4
rapidee -S Path
rem rapidee -A -E Path "C:\Program Files\Java\jdk1.8.0\bin"
rapidee -A -E Path "C:\Program Files\Java\jdk1.7.0_51\bin"
rapidee -A -E Path G:\dev\tools\apache-maven-3.1.1\bin
rapidee -A -E -C Path G:\dev\tools\protoc-2.5.0-win32
rapidee -A -E -C Path G:\dev\tools\0.5.1_windows_amd64_packer
rapidee -A -E -C Path C:\cygwin64\bin
rapidee -A -E -C Path "C:\Program Files (x86)\Git\bin"
rapidee -A -E -C Path G:\dev\tools\scala\scala-2.10.4\bin
Save this above file as set_env.bat
You can do lots of things via batch scripting. http://en.wikibooks.org/wiki/Windows_Batch_Scripting
Download the Rapid Environment editor from http://www.rapidee.com/
Install it and add it to your path.
Now whenever you want to set windows environment variable you can just add it to above set_env.bat script and execute
Here is what it looks like on my system
No comments:
Post a Comment
Please share your views and comments below.
Thank You.