Home » Posts tagged 'batch script'

Tag Archives: batch script

Delete Old Files

Batch script to delete X days old file from specified location. Where is X is number of days.

@echo off
REM Remove files backup older than X days
Echo Deleting Bak file….
forfiles /p “Folder Path” /s /m *.bak /c “cmd /c Del @path” /d -X
Exit

Note:
Folder Path= Replace with target folder.
Replace X with no of days (Eg :3 for 3 days old)

Thanks,
WintelAdmin


Visitors Count

Subscriber Count

    4030
June 2017
M T W T F S S
« May    
 1234
567891011
12131415161718
19202122232425
2627282930