Use the %%Variable form when you want to use the replaceable parameter for activities
within the batch file. The variable names are case sensitive, so %f isn??™t the same as %F. In
addition, you must use an alphabetical variable name, such as %A, %B, or %C.
(Set) Defines the set to process. The set can include one or more files, directories, range of values,
or text strings that you want to process with the specified command. For example, you can
use environment variables as the set. The command For %%P In (%PATH%) Do ECHO %%P would
display the members of the PATH environment variable as individual strings.
Command Specifies the command you want to perform for each entry in the set.
CommandLineOptions Defines the command line options for the command that you want to
perform for each entry in the set. The command line options are command or utility specific; see
the other entries in this book for details.
Performing Complex File Iteration
You can use the For command to process command output, strings, and the content of files. In this
case, the For command begins by breaking the input into individual lines of content and discarding
any blank lines.
Pages:
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381