home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
FF_200.ZIP
/
BATFILES.ZIP
/
VIRCHECK.BAT
< prev
Wrap
DOS Batch File
|
1994-07-20
|
1KB
|
45 lines
@ECHO OFF
CLS
** Run THDPRO on uploaded files, if an errorlevel exists goto failed.
D:\BBS\VIRUS\THDPRO\THDPRO %1
IF ERRORLEVEL 1 GOTO FAILED
IF ERRORLEVEL 3 GOTO FAILED
IF ERRORLEVEL 4 GOTO FAILED
IF ERRORLEVEL 5 GOTO FAILED
IF ERRORLEVEL 10 GOTO FAILED
IF ERRORLEVEL 15 GOTO FAILED
IF ERRORLEVEL 103 GOTO FAILED
IF ERRORLEVEL 233 GOTO FAILED
** If the file passed, move to a passed directory for inclusion by the sysop.
COPY %1 D:\BBS\FILES\AREA\PASSED
GOTO END
:FAILED
** Failed files get moved to a failed directory, prepare message to send to sysop.
COPY %1 D:\BBS\VIRUS\ALERT
COPY D:\BBS\FAILED.TXT D:\BBS\FAILED.MES
ECHO %1 >> D:\BBS\FAILED.MES
ECHO >> D:\BBS\FAILED.MES
ECHO File Has Been Moved to D:\BBS\Virus\Alert >> D:\BBS\FAILED.MES
ECHO ************************* END OF MESSAGE *************************** >> D:\BBS\FAILED.MES
** Post message to sysop.
FEUTIL POST D:\BBS\failed.MES #3 -from "ThdPro" -To "Sysop"
DEL D:\BBS\FAILED.MES
DEL %1
:END