How to Automatically delete Older files After X days (files only) (Files and Folder)
Channel:
Subscribers:
6,430
Published on ● Video Link: https://www.youtube.com/watch?v=mSwu59HsVpk
In Program space enter "forfiles"
For Files only:
In Arguments space enter " /p "file location" /S /D -1 /C "cmd /c del /q @path"
For Files and Folder:
In Arguments space enter "/P "file location" /S /D -1 /C "cmd /C IF @isdir == TRUE rd /S /Q @path"
in /D -1 set the value to how older files you want to keep , "if you want to keep 10 days older files set /D -10"
Kindly Join
Discord:
https://discord.com/invite/5pRxw97bJu
Telegram:
https://t.me/nanosoftx
Tags,
#PC, #Task, #Windows,