How do I delete files in Windows older than 30 days?

Sơn Lê

Member
How do I delete files in Windows older than 30 days?
Answer
To delete files older that X days, do the following.
  1. Open a new command prompt instance.
  2. Type the following command: ForFiles /p “C:My Folder” /s /d -30 /c “cmd /c del @file” Substitute the folder path and the amount of days with desired values and you are done.
1 дек. 2017 г.
 

Tìm kiếm

Back
Top