home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BBS_UTIL / RBTCH242.ZIP / EXAMPLE.ZIP / EXAMPLES.ZIP / PHASE1.1 next >
Text File  |  1992-05-31  |  3KB  |  58 lines

  1. REM       %1 = path/filename.extension, %2 = extension
  2. REM       %3 = node number, %4 = filename(no period or extension)
  3. REM       %5 = the path to your upload directory (no trailing backslash)
  4. REM
  5. REM       Note that gate%node% is used here.  If you do not use
  6. REM       GATEWAY substitue you COM port here instead ( > COM1 )
  7. REM
  8. REM       %node% is from the SET NODE=1, SET NODE=2, etc. in your
  9. REM       Autoexec.Bat or your batch file that runs your DV
  10. REM       Node Window
  11. REM
  12. @echo off
  13. if %2 == ARJ GOTO :ARJ
  14. if %2 == ZIP GOTO :ZIP
  15. if %2 == GIF GOTO :GIF
  16. if %2 == LZH GOTO :LZH
  17. GOTO :END
  18. :ZIP
  19. if not exist %1 GOTO :END
  20. echo.                                                                 > gate%node%
  21. echo                    Checking ZIP Intergrity of Upload             > gate%node%
  22. echo.                                                                 > gate%node%
  23. pkunzip -t %1 > NUL
  24. if errorlevel 1 GOTO :DEL
  25. GOTO :END
  26. :LZH
  27. if not exist %1 GOTO :END
  28. echo.                                                                 > gate%node%
  29. echo                    Checking LZH Intergrity of Upload             > gate%node%
  30. echo.                                                                 > gate%node%
  31. lharc -t %1 > NUL
  32. if errorlevel 1 GOTO :DEL
  33. GOTO :END
  34. :ARJ
  35. if not exist %1 GOTO :END
  36. echo.                                                                 > gate%node%
  37. echo                    Checking ARJ Intergrity of Upload             > gate%node%
  38. echo.                                                                 > gate%node%
  39. arj t %1 > NUL
  40. if errorlevel 1 GOTO :DEL
  41. GOTO :END
  42. :DEL
  43. del %1 > NUL
  44. :GIF
  45. echo.                                                                 > gate%node%
  46. echo                                ****                              > gate%node%
  47. echo                  The Policies of this BBS state that             > gate%node%
  48. echo                      GIF's are UNWANTED FILES!                   > gate%node%
  49. echo              THE UPLOADED .GIF FILE HAS BEEN DELETED!!!!!        > gate%node%
  50. echo                                ****                              > gate%node%
  51. echo                    You agreed to these Policies when             > gate%node%
  52. echo                      you first logged onto this BBS              > gate%node%
  53. echo                            as a New User                         > gate%node%
  54. echo.                                                                 > gate%node%
  55. del %1 > NUL
  56. :END
  57. seterror 0
  58.