home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
014r
/
rearc.zip
/
REARC.BAT
next >
Wrap
DOS Batch File
|
1987-03-02
|
444b
|
14 lines
ECHO OFF
CLS
IF %1X==X GOTO SYNTAX
CD > %2ERROR.LOG
FOR %%A IN (%1\*.*) DO DEL %%A
FOR %%A IN (*.ARC) DO COMMAND /C SUB %%A %1 %2
GOTO END
:SYNTAX
ECHO Correct usage: REARC d:\path\workdir d:\path\errdir\
ECHO Where workdir will be used as a temporary work area (it will be erased)
ECHO and an error log will be placed in errdir (note trailing \ on errdir).
ECHO errdir defaults to current directory if not specified.
:END