home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
acb153b1.zip
/
acrobat.zi_
/
proc_arj.bat
< prev
next >
Wrap
DOS Batch File
|
1997-01-10
|
2KB
|
65 lines
@ECHO OFF
REM BAT File for processing ARJ files
REM p1 complete path to file (ex. C:\FILES\UPLOADS\TEST.ZIP)
REM p2 which node? (ex. NODE1)
REM p3 path to files.bbs (ex. C:\FILES\UPLOADS)
REM p4 path bbs (ex. C:\ACROBAT\)
REM <acrobat dir>\TEMP MUST always exist!?!
REM <acrobat dir>\LOCAL MUST always exist!?!
REM You can turn uploadchecking off via ACROBAT.CFG
REM echo y| command, the y means yes. it's used for
REM bypassing the 'Are you sure(y/n)' command. If you
REM are using another language than english, you have
REM to change that y to the equivalent for your lan-
REM guage! For example, for dutch os/2 versions, you
REM have to change y in J because J because the dutch
REM prompt is 'Ben je zeker (J/N) ?'
REM I could all these stuff internally in acrobat, but
REM than i have to swap 4 times... This seems uglier,
REM but it's more efficient... BTW, I like those good
REM old batch processing stuff :)
REM Testing arjfile
ARJ t %1
if errorlevel 1 goto bad
echo 1 >%4%2.CHK
goto scan
:bad
echo 0 >%4%2.CHK
echo 0 >%4%2.VIR
echo 0 >%4%2.DIZ
goto end
:scan
ARJ e -y %1 %4TEMP
c:\utils\virus\mcaf\scan %4TEMP /ALL /NOMEM /NOEXPIRE
if errorlevel 1 goto infected
echo 1 >%4%2.VIR
echo y|del %4TEMP
goto diz
:infected
echo 0 >%4%2.VIR
echo 0 >%4%2.DIZ
echo y|del %4TEMP
del %1
goto end
:diz
ARJ e -y %1 %4TEMP file_id.diz
if errorlevel 1 goto nodiz
echo 1 >%4%2.DIZ
goto adds
:nodiz
echo 0 >%4%2.DIZ
goto adds
:adds
ARJ a -y /Z%4BANNER.ADD %1 %4RAW2.ADD
:end
cls