I know we can run a node.js file in windows via the command prompt like below
cd c:\wamp\www\myfolder
c:\wamp\www\myfolder>node testing.js
My question is, How can I automate this file to run indefinitely for every 10 second or 1 minute in windows?
As of now I have created a scheduler in windows system which is running every 1 minute to execute my js file. I have created a .bat file with required commands and put it in the scheduler. So it is running perfectly. I want to know, are there any other best solutions available?
One more question I have is, every time I run "node testing.js" command, does node js will create a new server instance or will it use the same / old instance which is created earlier. What is the mechanism behind that.