I am tired of manually typing the path and run in the command prompt.
Here is what I need:
cd c:\socket\nodejs
node test.js
How can I create a BAT or shortcut for this?
Just create a shortcut that creates a cmd
window and with its working directory set to c:\socket\nodejs
. Keep the window open during development. You can also copy the shortcut into your startup directory so the window will open when you log in.