home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BBS_UTIL
/
RBTCH242.ZIP
/
EXAMPLE.ZIP
/
EXAMPLES.ZIP
/
PHASE1.2
< prev
next >
Wrap
Text File
|
1992-11-13
|
8KB
|
183 lines
@echo off
REM %1 = path/filename.extension
REM %2 = extension
REM %3 = node number
REM %4 = filename(no period or extension)
REM %5 = Upload directory
if %2 == ARJ GOTO :ARJ1
if %2 == ZIP GOTO :ZIP1
if %2 == GIF GOTO :GIF1
GOTO :PART2
:ZIP1
if not exist %1 GOTO :PART2
echo Checking ZIP Integrity of Upload > gate%node%
pkunzip -t %1 > NUL
if errorlevel 1 GOTO :DEL1
GOTO :PART2
:ARJ1
if not exist %1 GOTO :PART2
echo Checking ARJ Integrity of Upload > gate%node%
arj t %1 > NUL
if errorlevel 1 GOTO :DEL1
GOTO :PART2
:DEL1
del %1 > NUL
GOTO :EXIT
:GIF1
echo. > gate%node%
echo **** > gate%node%
echo The Policies of this BBS state that > gate%node%
echo GIF's are UNWANTED FILES! > gate%node%
echo THE UPLOADED .GIF FILE HAS BEEN DELETED!!!!! > gate%node%
echo **** > gate%node%
echo You agreed to these Policies when > gate%node%
echo you first logged onto this BBS > gate%node%
echo as a New User > gate%node%
echo. > gate%node%
GOTO :EXIT
:PART2
IF not exist %1 GOTO EXIT
REM %1 = path/filename.extension, %2 = extension
REM %3 = node number, %4 = filename(no period or extension)
REM D:\NEW is the upload directory on the BBS in this example
REM change this to match your system
md g:\upwork\%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%
pkunzip -o %1 g:\upwork\%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 g:\upwork\%3
IF ERRORLEVEL 1 GOTO OLDDATE
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan/a g:\upwork\%3 /NOMEM > NUL
IF ERRORLEVEL 1 GOTO VIRUS
echo. > gate%node%
echo Adding THE SHORELINE Logo to File > gate%node%
echo. > gate%node%
ZIPLOGO %1 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 g:\upwork\%3
IF ERRORLEVEL 1 GOTO OLDDATE
echo. > gate%node%
echo Checking Uploaded File for Virus > gate%node%
echo. > gate%node%
scan g:\upwork\%3 /NOMEM /A /NOBREAK /NOPAUSE > 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, the this is the place
REM - to ZIP the file in the node directory which is off the upload
REM - directory. (g:\upwork\%3)
GOTO EXIT
:ZOO
g:
CD\upwork\%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
g:
CD\upwork\%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%
g:
cd\upwork\%3
lha e %1 > NUL
c:
cd\rbbs
GOTO PKZIP
:PAK
g:
CD\upwork\%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
g:
CD g:\upwork\%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
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
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 g:\upwork\%3 /unsafe /bios > NUL
seterror 0