forfiles is a computer software utility for Microsoft Windows, which selects files and runs a command on them. File selection criteria include name and last modified date. The command specifier supports some special syntax options. It can be used directly on the command line, or in batch files or other scripts.
The forfiles command was originally provided as an add-on, in the Windows 98, Windows NT and Windows 2000 Resource Kits. It became a standard utility with Windows Vista, as part of the new management features.