Search code examples
javascriptnode.jswindowsbatch-fileexecutable

Is there any way to create an shortcut desktop to a Node.js (npm) application?


Inexperienced users want to "see" the app that I've created in Node.js, but they don't want to use the console. According to them, it's a good idea to install it, and with a simple click, in desktop, they could "see" it.

They want to run the Node.js app as a Windows program. That's all!

How can I do it? Should I create a batch file?


Solution

  • **SOLVED**

    An .bat file, renamed as "appstart.bat"

    cd C:\Users\MyUser\MyApp
    npm start
    

    With shortcut in desktop.