I build a small application that runs with the command npm start
. Now the user of this application is not that technical, and they will not like to open a command prompt and type the cd
command, then type npm start
. So I want to create a .bat
file and write the opening command of the application, so the user double click on the .bat file and the application start automatically.
The .bat
will open in the command prompt itself.
npm start
So if you write the command in a .bat
file and place it inside your application directory, it will start your application. To make it more simple, create a shortcut of the bat file and keep it on the desktop or anywhere you like.