SAMPLE command and resulting output      | Comments about the output

  COPY A:%1  C:%2                          If these lines were in a BATCH file
  DEL A:%1                                 UPDATE.BAT, the command line:
  DIR C:%2 > A:%3.UPD                          UPDATE *.TXT \NEW RECORD
  TYPE A:%3.UPD                            would substitute *.TXT for %1 and
                                           \NEW for %2 and RECORD for %3 every
                                           time %1 or %2 or %3 appeared in the
                                           file. This could be used to transfer
                                           some .TXT files from a diskette to 
                                           a directory on a hard disk, and 
                                           leave a record of the transfer on
                                           the diskette, and display the 
                                           updated directory on the screen.

  ECHO SEARCHING FOR "%1" IN FILES: %2     If these lines were in a BATCH file
  FOR %%f IN (%2) DO FIND /N "%1" %%f      SEARCH.BAT, the command line:
                                               SEARCH END *.ASM
SEARCHING FOR "END" IN FILES: *.ASM        would substitute END for %1 and
                                           *.ASM for %2 every time %1 or %2
---------- MAIN.ASM                        appeared in the file. This could
[88] END                                   be used to be sure that the three
                                           ASM files in a directory, called
---------- SUBR1.ASM                       MAIN.ASM, SUBR1.ASM, and SUBR2.ASM,
[133]END                                   each had an END statement, or to
                                           see how many lines were in each
---------- SUBR2.ASM                       file (assuming the END statement
[9]  END                                   was last).



  IF EXIST %0.EXE %0 %1                    If these lines were in a BATCH file
  IF NOT EXIST %0.EXE DEL %1               RM.BAT, the command line:
                                               RM *.TXT
                                           would substitute RM for %0 and 
                                           *.TXT for %1 every time %0 or %1
                                           appeared in the file. This could be
                                           used to execute the RM.EXE program
                                           if it existed, otherwise the DOS
                                           DEL command would be used.
