You may want to create a batch file for this command because it will be
much shorter. However, unlike the command-line version of the FOR command,
the batch-file version uses two percent signs (%). The following are two
batch-file examples:

for %%p in (%1) do type %%p

-or-

for %%p in (%1) do find "%2" %%p

Using the second batch-file example, the following command typed at the
MS-DOS prompt finds every file ending with the .TXT extension that has the
string "CONFIG" in it. The quotation marks ("%2") are specific to the FIND
command and not necessarily part of the FOR command syntax. If the second
example is in a batch file called FF.BAT, to invoking the batch-file
command, type: