Last Updated: February 25, 2016
·
364
· sidnc86

Using batch files to quickly browse to your project

Everyday I come in office, I need to browse to my projects directory where I have checked out the projects I'm currently working on.
But, browsing to the same directory by
1. Going to Computer
2. Then to my drive (e:)
3. then through a tree of directories till I get there.

All of this has been just too time consuming. So I wanted to make this really quick. Bit of Googling got me this command called "explorer" which accepts the directory you want to browse to as a command line argument. But typing this command is also quite tedious task. So put it in a batch file named gorepo.bat and make sure that your environment "path" variable points to this batch file. That's it! All I need to do when I start my pc is to
1. Press Windows+r
2. type "gorepo" and hit enter.

Now my next target is to be able to say something like "go repo" and "go kb" by having go.bat and passing repo/kb as arguments indicating my project repository or knowledge base directory.