Friday, May 8, 2015

How to delete files older than 30 days with one command line.


cleanup.bat

forfiles /p e:\camfiles /d -30 /m *.* /s /c "cmd /C del /q @FILE"

IP cameras do an ftp upload every five minutes. A schedules task will clean up the old files nightly.

No comments: