title: Execute bat file as a windows service
body: <p>I have a windows batch file which i want to execute as a service. I have found app like alwaysRun but i want to use windows in-build app for this purpose. Can anyone please suggest.</p>
  
  <p>My Use Case is : - I have a batch file which will be executing after every 10 secs. So i have created a normal batch file which calls this bat file and sleeps for 10 secs. So i want to make this second bat file as a service. So that it is called once and when the windows reboots.</p>
  
  <p>This file should be called as a service.</p>
  
  <pre><code>@echo off
  :begin
  CALL dummyfile.bat
  timeout /t 1
  goto begin
  </code></pre>
  
  <p>Please suggest.</p>