View Single Post
  #1912  
Old 03.10.2021, 04:11
TomNguyen TomNguyen is offline
DSL Light User
 
Join Date: Jul 2017
Posts: 33
Default

Dear @mgpai,
Could you please help with a script that automatically deletes files have been downloaded for more than 30 days (and bigger than 5GB if possible to add this filter) when HDD space reached 900GB (or 90% HDD used).
I have been using scheduled task on windows to delete the 30-days old files as per this instruction
Quote:
jackworthen.com/2018/03/15/creating-a-scheduled-task-to-automatically-delete-files-older-than-x-in-windows
But it would be great to keep the old files, especially the small files until there is only 10% space left. Thank you!

Last edited by TomNguyen; 03.10.2021 at 07:56.
Reply With Quote