home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / CDOR0811.ZIP / RBBS.ZIP / CALLZ.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-01-23  |  2.7 KB  |  89 lines

  1. REM ECHO OFF
  2. REM %1 = prefix/file converting, %2 = node, %3 = extension converting
  3. REM %4 = work path   %5 %6 - extract command   %7 = actual file path
  4. REM %8 = trailing backslash for arj and lzh files
  5.  
  6. proecho %node% ~Testing upload, please wait...~
  7. md %4%2
  8.  
  9. proecho %node% ~Testing upload for %3 Integrity...~
  10. recom -s c:\rbbs\dir\add.txt %7\%1.zip
  11. pkunzip -t %7\%1.zip
  12. IF ERRORLEVEL 1 GOTO badupload
  13. seterror 0
  14.  
  15. %5 %6 %7%1 %4%2%8
  16.  
  17. IF EXIST %4%2\FILE_ID.DIZ COPY %4%2\FILE_ID.DIZ c:\rbbs\node%node%
  18. IF EXIST %4%2\DESC.SDI COPY %4%2\DESC.SDI c:\rbbs\node%node%
  19.  
  20. :VIRUS
  21. proecho %node% ~Testing upload for viruses...~
  22. scan /noexpire /nomem /nopause /A %4%2
  23. IF ERRORLEVEL 2 goto PROGRAM_ERROR
  24. IF ERRORLEVEL 1 goto VirusCk
  25. seterror 0
  26. goto Good
  27.  
  28. :PROGRAM_ERROR
  29. seterror 0
  30. proecho %node% ~Program error occured!~
  31. proecho %node% ~Your UpLoad was NOT Scanned!~
  32. proecho %node% ~Please tell SysOp!~
  33. echo %1 failed virus check due to program error >> c:\rbbs\node1\virus.log
  34. GOTO DATE_CHECK
  35.  
  36. :VIRUSCK
  37. copy %7%1.%3 c:\rbbs\badfiles
  38. del %7%1.%3
  39. proecho %node% ~  The file you uploaded may contain a Virus!~
  40. proecho %node% ~  It will be placed off line for the SysOp's Examination.~
  41. seterror 1
  42. echo %1 MAY CONTAIN A VIRUS! >> c:\rbbs\node1\VIRUS.LOG
  43. goto exit
  44.  
  45. :GOOD
  46. REM proecho %node% ~No Viruses have been found!~
  47. :DATE_CHECK
  48. proecho %node% ~Checking the date(s) of file(s) in %1.%3...~
  49. copy %7%1.%3 %4%2
  50. zipds %4%2\%1.%3
  51. testage %4%2 1990 c:\rbbs\oldfiles
  52. if exist c:\rbbs\oldfiles\%1.%3 goto baddates
  53. if not exist c:\rbbs\oldfiles\%1.%3 goto thanks
  54.  
  55. :baddates
  56. proecho %node% ~At least one of the programs you uploaded is~
  57. proecho %node% ~more than 2 years old.  I will move any old~
  58. proecho %node% ~programs offline for evaluation to determine~
  59. proecho %node% ~if they are worth their 'bytes'.
  60. proecho %node% ~PLEASE DO NOT UPLOAD FILES DATED BEFORE 1990!~
  61. proecho %node% ~Your Upload:Download ratio remains unchanged.~
  62. proecho %node% ~If this upload is placed on line, you will be credited.~
  63. copy %7%1.%3 c:\rbbs\oldfiles
  64. del %7%1.%3
  65. echo %1 OLDIE! >> c:\rbbs\node1\OLDIE.LOG
  66. goto exit
  67.  
  68. :badupload
  69. proecho %node% ~Looks like one or more of your uploads failed~
  70. proecho %node% ~Archive Integrity tests...~
  71. proecho %node% ~I will move all file(s) you just uploaded~
  72. proecho %node% ~offline for manual evaluation.~
  73. proecho %node% ~Your Upload:Download ratio remains unchanged.~
  74. proecho %node% ~If this upload is placed on line, you will be credited.~
  75. copy %7%1.%3 c:\rbbs\badfiles
  76. del %7%1.%3
  77. ECHO %1 BAD UPLOAD >> c:\rbbs\node1\badfiles.log
  78. goto exit
  79.  
  80. :thanks
  81. REM proecho %node% ~No Errors Found.  Tests Complete!~~
  82.  
  83. :EXIT
  84. kdy %4%2
  85. SETERROR 0
  86. c:
  87. cd\rbbs
  88. :END
  89.