title: How to run eventquery.vbs every hour in windows server 2003
body: <p>I am using following command to extract specific data in time interval</p>
  
  <pre><code>echo %data%
  cscript eventquery.vbs /fi "Datatime eq 04/04/2017,4:00:00PM-04/04/2017,10:00:00PM,7:00:00PM" /v /fo csv&gt;eventlog.txt
  </code></pre>
  
  <p>I am able to get what i require. But i want to make this as a Task scheduler .bat file and get it run every hour. I want to get last hours data everytime its run manually or by task scheduler.</p>
  
  <p>Please can anyone help me to automatize this thing in windows batch file ?</p>