title: how to run a simple node.js file using batch file
body: <p>I have one simple "Hello World" program in Node.js. I want to run this using batch file.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var http=require("http");
  
  http.createServer(function(request,response){
   response.writeHead(200,{'Content-Type':'text/plain'});
   response.end('Hello World!..\n');
  }).listen(8080);
  console.log('Server running at http://127.0.0.1:8080/');</code></pre>
  </div>
  </div>
  
  I have used this batch file named 'new.bat'.</p>
  
  <pre><code>if not "%minimized%"=="" goto :minimized
  set minimized=true
  @echo off
  start /min cmd /c "C:\Users\USER2\Desktop\webchat\server.js"
  goto :EOF
  :minimized
  </code></pre>
  
  
  
  <p>please help me.</p>