Selects and executes a command on a file or set of files. This command is useful for batch processing.
Executes specified command since there is a match for notepad.exe in the c:\windows\System32 folder.
forfiles /p c:\windows\system32 /m notepad.exe /c "cmd /c c:\windows\system32\calc.exe"
Executes the evil.exe Alternate Data Stream (AD) since there is a match for notepad.exe in the c:\windows\system32 folder.
forfiles /p c:\windows\system32 /m notepad.exe /c "C:\Windows\Temp\file.ext:evil.exe"