forfiles without cmd /c
I can run a forfiles command with cmd /c , as expected C:\>forfiles /c "cmd /c ping /a" IP address must be specified. However if I remove the cmd /c , it no longer recognizes any arguments, only the base command C:\>forfiles /c "ping /a" Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name Must I use cmd /c , even with external commands on the PATH? This is the original answer. Please read below the line for a complete analysis of the problem and a better way to solve it