Sunday, March 13, 2011

Batch script to load developer environment

Wrote a simple windows bat script to start my project work environment.
This would save me
4 + 2 + 3 + 2+2 = 14 mouse clicks
4+2 + 5 = 11 keystroke
3 + 3 = 6 copy paste
Saving me from making 14+ 3 + 6= 23 decisions.. lol
The effort involved to build this script is 1 hour though. On a long run saves my time and energy for making these 23 decisions.. Worth it i believe.
What this does is : start mysql server , tomcat, eclipse, mysql query browser and open command prompt into your current project
------------------
net start mysql5.1
f:
cd F:\apache-tomcat-6.0.29\bin\
start F:\apache-tomcat-6.0.29\bin\startup-debug.bat
start D:\tools\IDE\eclipse-jee-helios-SR2-win32\eclipse\eclipse_jee_helios.exe
"C:\Program Files\MySQL\MySQL Tools for 5.0\MySQLQueryBrowser.exe" -ulportal -pdontshow -hlocalhost
cd F:\project
-----------------

No comments: