Forrest logo
tool overview
On this page you find all important commands for the CLI tool forfiles. If the command you are looking for is missing please ask our AI.


Forfiles is a command line tool available in Windows operating systems. It is used for performing batch operations on files in a directory or subdirectory. The tool allows users to search and execute commands on files based on various criteria, such as file name, size, date, and attributes.

Forfiles can be used to automate tasks like copying, deleting, or moving files that meet specific criteria. Users can specify the folder to operate on, the command to run, and the options to filter files.

The tool supports wildcards, enabling users to perform operations on multiple files or file types at once. It also has options to exclude certain files or directories from the operation.

Forfiles can be particularly useful when combined with other command line tools or scripts, as it provides a way to perform operations on a large number of files with minimal effort. It is often used for tasks like backup, archiving, or organizing files into different folders based on specific criteria.

Overall, Forfiles simplifies file management tasks by providing a flexible and efficient way to perform batch operations on files in a directory or subdirectory.

List of commands for forfiles:

tool overview