title: Writing a batch utility to archive files on Windows Server 2008 R2
body: <blockquote>
    <p>I need to write a command line (PowerShell or DOS) utility that will
    archive all files created in between specified dates present in folder
    X and store them as a <code>.zip</code> package in the same folder.</p>
  </blockquote>
  
  <p>This utility will be scheduled into windows scheduler where arguments like <code>to</code> and <code>from</code> dates, <code>store location</code> will be provided to it and it will run at specified duration for e.g. at 12:00 noon daily.</p>
  
  <p>Is it possible to write it as a batch <code>.bat</code> file?
  Are there any built-in functionalities inside windows to zip files or I would need to use a third party program like <code>7-Zip</code> etc for it.</p>
  
  <p>I am not looking for any spoon feeding but just a direction, can anyone guide me to a tutorial or something. Both <code>DOS</code> based and <code>PowerShell</code> based solution would work for me.</p>
  
  <p>Please help me out with this.</p>
  
  <p>Thank you.</p>