logonewone

Script to delete the file older than 2 days

Example given below. You change the days whatever you want.

forfiles /p “E:\DatabaseBackupExpress” /s /m *.* /D -2 /C “cmd /c del @path”

forfiles /p “Path Name” /s /m *.* /D -2 /C “cmd /c del @path”