home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BBS_UTIL
/
RBTCH242.ZIP
/
EXAMPLE.ZIP
/
EXAMPLES.ZIP
/
PHASE2.1
< prev
next >
Wrap
Text File
|
1992-05-31
|
7KB
|
155 lines
@echo off
IF not exist %1 GOTO EXIT
REM
REM %1 = path/filename.extension, %2 = extension
REM %3 = node number, %4 = filename(no period or extension)
REM %5 = the path to the upload directory (no trailing backslash)
REM
REM Note that gate%node% is used here. If you do not use
REM GATEWAY substitue you COM port here instead ( > COM1 )
REM
REM %node% is from the SET NODE=1, SET NODE=2, etc. in your
REM Autoexec.Bat or your batch file that runs your DV
REM Node Window
REM
md d:\new\%3
if %2 == LZH GOTO LZH
IF %2 == ZOO GOTO ZOO
IF %2 == PAK GOTO PAK
IF %2 == ARC GOTO ARC
IF %2 == EXE GOTO EXE
IF %2 == COM GOTO COM
IF %2 == ARJ GOTO ARJ
IF %2 == ZIP GOTO ZIP
GOTO :EXIT
:ZIP
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
pkunzip -o %1 d:\new\%3 > NUL
echo. > gate%node%
echo Checking to see how old the file(s) > gate%node%
echo are in the file you Uploaded. > gate%node%
echo. > gate%node%
testfile 1989 50 d:\new\%3
IF ERRORLEVEL 1 GOTO OLDDATE
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan/a d:\new\%3 /NOMEM > NUL
IF ERRORLEVEL 1 GOTO VIRUS
echo. > gate%node%
echo Adding THE SHORELINE Logo to File > gate%node%
echo. > gate%node%
ZIPLOGO D:\NEW\%4.%2 C:\LOGO\MYLOGO.DOC > NUL
IF %2 == ZIP GOTO EXIT
:PKZIP
echo. > gate%node%
echo Checking to see how old the file(s) > gate%node%
echo are in the file you Uploaded. > gate%node%
echo. > gate%node%
testfile 1989 50 d:\new\%3
IF ERRORLEVEL 1 GOTO OLDDATE
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan/a d:\new\%3 /NOMEM > NUL
IF ERRORLEVEL 1 GOTO VIRUS
IF %2 == ARJ ARJLOGO %1 C:\LOGO\MYLOGO.DOC > NUL
IF %2 == ZIP ZIPLOGO %1 C:\LOGO\MYLOGO.DOC > NUL
REM - If we want to convert the upload to ZIP, then this is the place
REM - to ZIP the file in the node directory which is off the upload
REM - directory. (D:\NEW\%3)
GOTO EXIT
:ZOO
D:
CD\new\%3
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
looz x %1 > NUL
c:
cd\rbbs
GOTO PKZIP
:ARJ
D:
CD\new\%3
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
ARJ x %1 > NUL
c:
cd\rbbs
GOTO PKZIP
:LZH
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
D:
cd\new\%3
lha e %1 > NUL
c:
cd\rbbs
GOTO PKZIP
:PAK
D:
CD\new\%3
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
pak E %1 > NUL
C:
cd\rbbs
GOTO PKZIP
:ARC
D:
CD d:\new\%3
echo. > gate%node%
echo Preparing Uploaded File for Date & Virus Check > gate%node%
echo. > gate%node%
pkunpak -E %1 > NUL
C:
GOTO PKZIP
:EXE
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan/a %1 /NOMEM > NUL
IF ERRORLEVEL 1 GOTO VIRUS
GOTO EXIT
:COM
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan/a %1 /NOMEM > NUL
IF ERRORLEVEL 1 GOTO VIRUS
GOTO EXIT
:OLDDATE
cls > gate%node%
echo. > gate%node%
echo The Dates of the files inside your Upload > gate%node%
echo. are older than the rules allow. File Deleted > gate%node%
echo. > gate%node%
del %1 > NUL
GOTO EXIT
:VIRUS
DEL %1 > NUL
cls > gate%node%
echo. > gate%node%
echo The File : %4.%2 > gate%node%
echo. > gate%node%
echo ****************************************** > gate%node%
echo Possible VIRUS Detected....This Upload > gate%node%
echo has been -DELETED- > gate%node%
echo > gate%node%
echo > gate%node%
echo It is also recommended that you delete > gate%node%
echo this file from your system as a precaution > gate%node%
echo ****************************************** > gate%node%
echo. > gate%node%
:EXIT
c:
cd\rbbs
kill d:\new\%3 /unsafe /bios
seterror 0