Forfiles.exe


This command-line tool can be used in a batch file to select files in a folder or tree for batch processing.

ForFiles enables you to run a command on or pass arguments to multiple files. For example, you could run the TYPE command on all files in a tree with the *.txt extension. Or you could execute every batch file (*.bat) on the C:\ drive with the file name "Myinput.txt" as the first argument.

With ForFiles, you can:

ForFiles works by implementing the "recurse subdirectories" flag on tools designed to process only a single file.

ForFiles Topics

File Required