Batch File To Delete Files Older Than X Hours

We collected information about Batch File To Delete Files Older Than X Hours for you. Follow the liks to find out everything about Batch File To Delete Files Older Than X Hours.


Batch file to delete files older than x days – Sathya's World

    https://sathyabh.at/2010/11/10/batch-file-to-delete-files-older-than-x-days/
    @echo off @Echo Deleting files older than 30 days... forfiles /p g:\backup /d -30 /c "cmd /c del @file" So this will basically search for any file(s) older than 30 days ( based on the Last Modification Date attribute) in the path g:\backup and will execute del @file where del == delete, @file is the variable which holds the filename. You can further filter out the files by …

Delete files older than 6 hours using forfiles - Windows ...

    https://community.spiceworks.com/topic/2088463-delete-files-older-than-6-hours-using-forfiles
    set ARCHIVE_RETENTION=1. set PG_LOG_RETENTION=30. echo **Deleting Dump files**. call forfiles /p %BACKUPDIR% /m *.dump /d -%BACKUP_RETENTION% /c "cmd /c DEL /Q @PATH" 2> nul. echo **Deleting Archive files**. call forfiles /p %ARCHIVEDIR% /m * /d -%ARCHIVE_RETENTION% /c "cmd /c DEL /Q @PATH" 2> nul. Reply 3.

How to Delete Files Older than X Days on Windows

    https://www.howtogeek.com/131881/how-to-delete-files-older-than-x-days-on-windows/
    Command Prompt. While we recommend you use one of the PowerShell methods, without getting into any of the gritty details you can also do it from command prompt. forfiles -p "C:\Backups" -s -m *.* -d -5 -c "cmd /c del @path".

Searching for Batch File To Delete Files Older Than X Hours?

You can just click the links above. The info is collected for you.

Related Hours Info