← Back to forfiles.exe
Enumerate and run (command exec demo)

Demonstrates forfiles /c invoking a command for each match. Use benign commands in testing.

1

Press Win-R

2

Type: forfiles /p C:\Windows\System32 /m notepad.exe /c "cmd /c ""@path"""

3

Press Enter (opens Notepad from System32)

Copied to clipboard!
⚠️ This is a demonstration - do not run this command!
Educational Example: This is a demonstration of what a social engineering attack might look like. Never run commands from untrusted sources. This example is for educational purposes only.