home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / RBTCH220.ZIP / EXAMPLE.ZIP / NEW-PHZ.ARJ / MAKE-PHZ.BAT < prev    next >
DOS Batch File  |  1992-10-30  |  3KB  |  116 lines

  1. @echo off
  2. if not exist parts.lab goto :Files1
  3. if "%1"=="" goto :Syntax
  4. if "%2"=="" goto :Syntax
  5. if "%3"=="" goto :Syntax
  6. if "%4"=="" goto :Syntax
  7. if "%5"=="" goto :Syntax
  8. pkunzip parts.lab>NUL
  9. if not exist top goto :Files2
  10. if not exist bat1 goto :Files2
  11. if not exist bat2 goto :Files2
  12. if not exist arj goto :Files2
  13. if not exist zip goto :Files2
  14. echo set ARCDRV=%1>part2
  15. echo set ARCDIR=%2>>part2
  16. echo set ARCLOG=%3>>part2
  17. echo set ARCPORT=com%4>>part2
  18. if "%5"=="A" goto :ARJ
  19. if "%5"=="a" goto :ARJ
  20. if "%5"=="Z" goto :ZIP
  21. if "%5"=="z" goto :ZIP
  22. goto :Syntax
  23. :ARJ
  24. copy top+part2+bat1+arj+bat2 phase1c.bat>NUL
  25. goto :End
  26. :ZIP
  27. copy top+part2+bat1+zip+bat2 phase1c.bat>NUL
  28. goto :End
  29. :FILES1
  30. cls
  31. echo.
  32. echo.
  33. echo.
  34. echo.
  35. echo.
  36. echo.
  37. echo     Place the file PARTS.LAB in this directory with this batch file
  38. echo                    and re-enter your command line.
  39. echo.
  40. echo.
  41. echo.
  42. echo.
  43. echo.
  44. echo                Press any key when you understand the above.
  45. pause>NUL
  46. goto :Bye
  47. :FILES2
  48. cls
  49. echo.
  50. echo.
  51. echo.
  52. echo.
  53. echo.
  54. echo  You are missing the 5 parts of the batch file.   They are as follows:
  55. echo                    ARJ, BAT1, BAT2, TOP, and ZIP
  56. echo.
  57. echo.
  58. echo.
  59. echo.
  60. echo.
  61. echo.
  62. echo                Press any key when you understand the above.
  63. pause>NUL
  64. goto :Bye
  65. :SYNTAX
  66. cls
  67. echo.
  68. echo.
  69. echo.
  70. echo.
  71. echo.
  72. echo                        Proper syntax is as follows:
  73. echo                  Make-Phz D: test c:\arcs-lab.log 2 A
  74. echo.
  75. echo   Param 1 - "D:" is the work drive (preferably a RAM disk or fast hard drive)
  76. echo   Param 2 - "test" is the work subdir to be created and deleted for phase1c.bat
  77. echo   Param 3 - "c:\rbbs\arcs-lab.log" is the log file to be created.
  78. echo   Param 4 - "2" is the Com Port you are using.
  79. echo   Param 5 - "A" is either A (for ARJ conversions) or Z (for ZIP conversions).
  80. echo.
  81. echo   Parameter 5 is the type of file extension you wish the files to be converted
  82. echo   to when all of the tests have passed.
  83. echo.
  84. echo.
  85. echo.
  86. echo.
  87. echo.
  88. echo.
  89. echo                  Press a key when you understand the above.
  90. pause>NUL
  91. goto :Bye
  92. :END
  93. cls
  94. echo.
  95. echo.
  96. echo.
  97. echo.
  98. echo.
  99. echo  Your PHASE1C.BAT has been created!  Please look it over to ensure there
  100. echo  are no errors in it before you run it.  Also, ensure that you have made
  101. echo  a good back up of your previous .BAT file before replacing it with this
  102. echo  one.  Good luck, and happy BBSing!
  103. echo.
  104. echo.
  105. echo.
  106. echo.
  107. echo.
  108. echo.
  109. del top>NUL
  110. del part2>NUL
  111. del bat1>NUL
  112. del arj>NUL
  113. del zip>NUL
  114. del bat2>NUL
  115. :BYE
  116.