home *** CD-ROM | disk | FTP | other *** search
- ----------------- %0-%9 - Batch File Replaceable Parameters -----------------
-
- Replaceable Parameters, %0 - %9, allow you to pass information to a batch file.
-
- FORMAT: %n
-
- REMARKS:
-
- n - is in the range 0-9.
-
- A maximum of ten replaceable parameters may be used at one time. Replaceable
- parameters are assigned to the characters typed in after the name of a batch
- file. %0 is set, by default, to the name of the Batch File being executed.
- Parameters must be separated by one or more blanks.
-
- EXAMPLE:
-
- The Batch File below is named TYPEPRT.BAT:
-
- TYPE %1
- PRINT %2
-
- When this Batch File is run, you pass two values to it. Suppose you want to
- TYPE the contents of the file FILEONE and PRINT the contents of FILETWO. You
- would enter:
-
- TYPEPRT FILEONE FILETWO
-
- %1 will be replaced with FILEONE and %2 will be replaced with FILETWO. Thus
- the TYPE command, when executed, will be TYPE FILEONE. The PRINT command, when
- executed, will be PRINT FILETWO.