Run node server with a bat file

batch-file, node.js, npm

Solution

Is it just me or is the answer already in plain sight? The following has worked for me perfectly (with OP's path):

cd "C:/user/folder/server"
node index.js

Problem

I need to create a bat file to start node server, actually we do it manually but some people need extra help. Let me explain the process: - Open CMD - Go to the path: `cd C://user/folder/server/` - Run the server: `npm start` It is very simple but I would really like to automate the process to make it faster.

Original source