home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / batch / hints / param / summary.hlp < prev   
Encoding:
Text File  |  1989-01-01  |  1.1 KB  |  26 lines

  1.                           PARAMETERS
  2.  
  3. Replaceable parameters of the form %0 through %9 may be used in BATCH files 
  4. as dummy values which will be replaced by values from the command line 
  5. executing the BATCH file. %0 is replaced by the name of the BATCH file 
  6. (minus the extension). %1 is replaced by the first value on the command 
  7. line, %2 is replaced by the second value, and so on. 
  8.  
  9. Replaceable parameters may appear anywhere in the BATCH file, and can be used 
  10. to specify filenames, commands to be executed, or strings to be searched for. 
  11. The values on the command line executing the BATCH file cannot have spaces, 
  12. <, or > in them. Values on the command line are separated by spaces, so they 
  13. may not include spaces.
  14.  
  15. NOTE: If you ever want to include the character '%' in a batch file, in an 
  16. ECHO or PAUSE message, for example, you need to include it twice to get it 
  17. displayed once. For example, the command
  18.  
  19.       ECHO  processing 100%% complete
  20.  
  21. in a batch file will display the message
  22.  
  23.       processing 100% complete
  24.  
  25. on the screen.
  26.