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_*
No comments:
Post a Comment