My Blog List

hotinit.com. Powered by Blogger.

Search This Blog

Batch File to Delete Files and Folders Based On Last Modified Date

Friday, 12 August 2011


@ECHO OFF
SET folderlocation=E:\DatabaseBackup
forfiles.exe /p %folderlocation% /s /m *.* /d -1 /c "cmd /c del @file"
pause
EXIT

No comments:

Post a Comment

 

Blogger news

Blogroll

Most Reading

8.6/10