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?
Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined in the FAQ. 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 closed questions here.
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.