home *** CD-ROM | disk | FTP | other *** search
/ Play and Learn 2 / 19941.ZIP / 19941 / COMREF / DOS5TUT / FOR.DAT < prev    next >
Encoding:
Text File  |  1994-02-05  |  338 b   |  14 lines

  1. Explanation of the FOR command. It is a 
  2. BATCH command.
  3.  
  4. This command is used in a BATCH file and 
  5. will run a specified command for each file 
  6. in a set.  
  7.  
  8. Example: 
  9.        To type all .DOC files in drive A you
  10.        would use the following command in 
  11.        your batch file:
  12.        
  13.        for %%f in (*.doc) do type %%f
  14.