home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / CLISP / CLISPSRC.TAR / clisp-1995-01-01 / os2 / forall.cmd < prev    next >
Encoding:
Text File  |  1992-11-13  |  434 b   |  14 lines

  1. @echo off
  2. rem Usage: FORALL command arg-with-wildcards other-args...
  3. rem to run commands that expect single file names and no wildcards
  4. rem on a set of files specified by a wildcard expression
  5. rem Example: forall lzexe *.exe  -->  lzexe x1.exe ; lzexe x2.exe ; ...
  6. rem Juergen Weber 19.5.1991
  7. if %2X==X goto USAGE
  8. if %1X==X goto USAGE
  9. for %%f in (%2) do call %1 %%f %3 %4
  10. goto EXIT
  11. :USAGE
  12.  echo usage:  forall FILEtoRUN WildArg
  13. :EXIT
  14.