Delete files older than x days in CLI

forfiles /p “C:\DIRECTORY” /d -7 /c “CMD /C del @FILE

Posted in Batch files, Microsoft and tagged , .

Leave a Reply