I have one JavaScript(.JS) file and i want to call it when system(PC) is start up.
Is it possible to call JavaScript file whenever system(PC) starts ?
Thanks
I have one JavaScript(.JS) file and i want to call it when system(PC) is start up.
Is it possible to call JavaScript file whenever system(PC) starts ?
Thanks
You need an environnement to start your JS file. Let's say you use node.
Create a batch file (windows) (or sh file (unix)) with something like node YOURJSFILE.js
.
Then you have to say to your OS to execute it at startup.
Example : Windows
To run a batch file at start up: start >> all programs >> right-click startup >> open >> right click batch file >> create shortcut >> drag shortcut to startup folder.
Example : Unix