Posts

Showing posts from November, 2018

How to start Node.js app windowless in Windows

Image
From [https://keestalkstech.com/2016/07/start-nodejs-app-windowless-windows/] How to start Node.js app windowless in Windows  2 min  read Node.js is getting more popular by the day. It breaks JavaScript free from the browser. I would love to auto start an application – much like a Windows service – without keeping a console window open. There are many programs / services to wrap node applications into an executable, but I like to stick with just Node. This small trick will start your Node application windowless on Windows. VBS to the rescue I’ve created a small Visual Basic Script called  app.vbs  that will start your node application within a hidden window: CreateObject ( "Wscript.Shell" ). Run "node app.js" , 0 The little zero at the end  does the trick . The string is the command to start the node process with the  app.js . The  .vbs  extension is executable in Windows. Autostart To execute it automatically at startup, open the  %