title: What are the different ways to run a node.js file indefinitely in windows server?
body: <p>I know we can run a node.js file in windows via the command prompt like below</p>
  
  <pre><code>cd c:\wamp\www\myfolder
  c:\wamp\www\myfolder&gt;node testing.js
  </code></pre>
  
  <p>My question is, How can I automate this file to run indefinitely for every 10 second or 1 minute in windows?</p>
  
  <p>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?</p>
  
  <p>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.</p>