title: How to delete log file after a week?
body: <p>I have scheduled a batch job to run every 4 hour to fetch latest records from database.</p>
  
  <p>Also I'm maintaining log file which will be updated whenever batch job runs. In order to compensate storage memory I need to delete log file every week.</p>
  
  <p>I had tried to solve the task with <a href="https://stackoverflow.com/questions/51054/">Batch file to delete files older than N days</a>.</p>
  
  <p>In my case file log files will be updated every 4 hours.</p>