Batch or Powershell script to clean up the files older than 6 hours? : <p>I wonder if .bat support to delete files older than N hours? I have a script that removes files older than N days but couldn't find command to remove based on hours. If the .bat file doesn't have the hourly function, can we do this using PowerShell script? I am trying to clean up all the files in C:\temp (Windows Server) that are older than 6 hours. </p>
