Thursday, June 17, 2010

Delete files and folder more than 30 day

Delete files and folder more than 30 day

 

forfiles /p "c:\temp\abc" /s /c "cmd /c rmdir /s/q @path" /d -30

forfiles /p "c:\temp\ghj" /s /c "cmd /c if @isdir==FALSE echo del @file & del @file" /d -30

forfiles /p "c:\temp\xyz" /s /c "cmd /c rmdir /s/q @path" /d -30 /m xyz_*

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment