Forfiles

Forfiles command line tool

Forfiles is a great windows command line tool and it comes in handy when you need to clean out older files on your machine or server and able to process files based on names, file extensions and age. A good example is when you want to list out all files on either your root drive or folder (directory) that are older than X number of days. Syntax: forfiles [/p ] [/m ] [/s] [/c ““] [/d [{+|-}][{|}]] Description of tags in code: =========================================================================== – /P (Path): Indicates the path to start searching.