home *** CD-ROM | disk | FTP | other *** search
- REM ECHO OFF
- REM %1 = prefix/file converting, %2 = node, %3 = extension converting
- REM %4 = work path %5 %6 - extract command %7 = actual file path
- REM %8 = trailing backslash for arj and lzh files
-
- proecho %node% ~Testing upload, please wait...~
- md %4%2
-
- proecho %node% ~Testing upload for %3 Integrity...~
- recom -s c:\rbbs\dir\add.txt %7\%1.zip
- pkunzip -t %7\%1.zip
- IF ERRORLEVEL 1 GOTO badupload
- seterror 0
-
- %5 %6 %7%1 %4%2%8
-
- IF EXIST %4%2\FILE_ID.DIZ COPY %4%2\FILE_ID.DIZ c:\rbbs\node%node%
- IF EXIST %4%2\DESC.SDI COPY %4%2\DESC.SDI c:\rbbs\node%node%
-
- :VIRUS
- proecho %node% ~Testing upload for viruses...~
- scan /noexpire /nomem /nopause /A %4%2
- IF ERRORLEVEL 2 goto PROGRAM_ERROR
- IF ERRORLEVEL 1 goto VirusCk
- seterror 0
- goto Good
-
- :PROGRAM_ERROR
- seterror 0
- proecho %node% ~Program error occured!~
- proecho %node% ~Your UpLoad was NOT Scanned!~
- proecho %node% ~Please tell SysOp!~
- echo %1 failed virus check due to program error >> c:\rbbs\node1\virus.log
- GOTO DATE_CHECK
-
- :VIRUSCK
- copy %7%1.%3 c:\rbbs\badfiles
- del %7%1.%3
- proecho %node% ~ The file you uploaded may contain a Virus!~
- proecho %node% ~ It will be placed off line for the SysOp's Examination.~
- seterror 1
- echo %1 MAY CONTAIN A VIRUS! >> c:\rbbs\node1\VIRUS.LOG
- goto exit
-
- :GOOD
- REM proecho %node% ~No Viruses have been found!~
- :DATE_CHECK
- proecho %node% ~Checking the date(s) of file(s) in %1.%3...~
- copy %7%1.%3 %4%2
- zipds %4%2\%1.%3
- testage %4%2 1990 c:\rbbs\oldfiles
- if exist c:\rbbs\oldfiles\%1.%3 goto baddates
- if not exist c:\rbbs\oldfiles\%1.%3 goto thanks
-
- :baddates
- proecho %node% ~At least one of the programs you uploaded is~
- proecho %node% ~more than 2 years old. I will move any old~
- proecho %node% ~programs offline for evaluation to determine~
- proecho %node% ~if they are worth their 'bytes'.
- proecho %node% ~PLEASE DO NOT UPLOAD FILES DATED BEFORE 1990!~
- proecho %node% ~Your Upload:Download ratio remains unchanged.~
- proecho %node% ~If this upload is placed on line, you will be credited.~
- copy %7%1.%3 c:\rbbs\oldfiles
- del %7%1.%3
- echo %1 OLDIE! >> c:\rbbs\node1\OLDIE.LOG
- goto exit
-
- :badupload
- proecho %node% ~Looks like one or more of your uploads failed~
- proecho %node% ~Archive Integrity tests...~
- proecho %node% ~I will move all file(s) you just uploaded~
- proecho %node% ~offline for manual evaluation.~
- proecho %node% ~Your Upload:Download ratio remains unchanged.~
- proecho %node% ~If this upload is placed on line, you will be credited.~
- copy %7%1.%3 c:\rbbs\badfiles
- del %7%1.%3
- ECHO %1 BAD UPLOAD >> c:\rbbs\node1\badfiles.log
- goto exit
-
- :thanks
- REM proecho %node% ~No Errors Found. Tests Complete!~~
-
- :EXIT
- kdy %4%2
- SETERROR 0
- c:
- cd\rbbs
- :END
-