home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / 014r / rearc.zip / REARC.BAT next >
DOS Batch File  |  1987-03-02  |  444b  |  14 lines

  1. ECHO OFF
  2. CLS
  3. IF %1X==X GOTO SYNTAX
  4. CD > %2ERROR.LOG
  5. FOR %%A IN (%1\*.*) DO DEL %%A
  6. FOR %%A IN (*.ARC) DO COMMAND /C SUB %%A %1 %2
  7. GOTO END
  8. :SYNTAX
  9. ECHO Correct usage:  REARC d:\path\workdir d:\path\errdir\
  10. ECHO   Where workdir will be used as a temporary work area (it will be erased)
  11. ECHO   and an error log will be placed in errdir (note trailing \ on errdir).
  12. ECHO   errdir defaults to current directory if not specified.
  13. :END
  14.