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?
**SOLVED**
An .bat file, renamed as "appstart.bat"
cd C:\Users\MyUser\MyApp
npm start
With shortcut in desktop.
You can also create a shortcut and set "Target" to...
C:\Windows\System32\cmd.exe /k "node index.js"
... and set "Start In" to the directory index.js is in.
Because Node-Red is usually installed globally _
a Node-Red.bat
file could simply be
cd \
Node-Red
then use convertico.com to change the Node-Red.png file to Node-Red.ico.
Slick Willy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With