I am tired of typing "cd c:\socket\nodejs" "node testserver.js"
Into the command promt..
How do I create a shortcut or bat for it?
closed as off topic by Tetrad♦ Oct 25 '12 at 19:39
Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
To do exactly as you asked, create a
But what I would suggest is installing this thing I came across the other day called Lineman. It makes use of Grunt to automatically check for file updates on the fly. It also has built in support for Test'Em which makes unit testing a breeze. Using all of this, you could write a batch script more like this:
then just go from there without even needing to run
and keep that open so you can check in and make sure all of your unit tests are always passing.