home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / win3x / ripterm.arj / RTD21100.EXE / TESTDRIV.EXE / SETUP.BAT < prev    next >
DOS Batch File  |  1995-09-08  |  5KB  |  195 lines

  1. @echo off
  2.  
  3.  
  4. if not exist ripterm.cnf goto FIRSTIME
  5.  
  6.  
  7. if "%1" == "" goto FULLSET
  8.  
  9. if "%1" == "-v" goto VIDEO
  10. if "%1" == "-V" goto VIDEO
  11. if "%1" == "/v" goto VIDEO
  12. if "%1" == "/V" goto VIDEO
  13.  
  14. if "%1" == "-a" goto AUDIO
  15. if "%1" == "-A" goto AUDIO
  16. if "%1" == "/a" goto AUDIO
  17. if "%1" == "/A" goto AUDIO
  18.  
  19. if "%1" == "-c" goto COMPORT
  20. if "%1" == "-C" goto COMPORT
  21. if "%1" == "/c" goto COMPORT
  22. if "%1" == "/C" goto COMPORT
  23.  
  24. if "%1" == "-p" goto PRINTER
  25. if "%1" == "-P" goto PRINTER
  26. if "%1" == "/p" goto PRINTER
  27. if "%1" == "/P" goto PRINTER
  28.  
  29. if "%1" == "-f" goto FULL
  30. if "%1" == "-F" goto FULL
  31. if "%1" == "/f" goto FULL
  32. if "%1" == "/F" goto FULL
  33.  
  34.  
  35.  
  36. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  37. ::
  38. :: If we got down to here, then the user specified some invalid command line
  39. :: option.  Show him the error of his ways.
  40. ::
  41. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  42.  
  43. echo.
  44. echo Option "%1" is not valid.  The following are the available setup 
  45. echo options:
  46. echo.
  47. echo         -v ... Prompt for new video settings
  48. echo         -c ... Prompt for new communications port settings
  49. echo         -a ... Prompt for new audio board configuration
  50. echo         -p ... Prompt for new printer configuration
  51. echo         -f ... Go into "full setup mode" (configure everything)
  52. echo.
  53. echo If you provide no options at all, setup will automatically go into
  54. echo full configuration mode.  If you specify an option, specify it after
  55. echo the word SETUP (e.g., "SETUP -C" to configure your communications port).
  56. echo.
  57.  
  58. goto GETOUT
  59.  
  60.  
  61.  
  62. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  63. ::
  64. :: The following section performs video setup 
  65. ::
  66. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  67.  
  68. :VIDEO
  69.  
  70. ripterm -uv %2 %3 %4 %5 %6 %7 %8 %9
  71.  
  72. goto GETOUT
  73.  
  74.  
  75.  
  76. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  77. ::
  78. :: The following section performs audio setup 
  79. ::
  80. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  81.  
  82. :AUDIO
  83.  
  84. ripterm -ua %2 %3 %4 %5 %6 %7 %8 %9
  85.  
  86. goto GETOUT
  87.  
  88.  
  89.  
  90. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  91. ::
  92. :: The following section performs COM port setup 
  93. ::
  94. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  95.  
  96. :COMPORT
  97.  
  98. ripterm -uc %2 %3 %4 %5 %6 %7 %8 %9
  99.  
  100. goto GETOUT
  101.  
  102.  
  103.  
  104. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  105. ::
  106. :: The following section performs printer setup 
  107. ::
  108. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  109.  
  110. :PRINTER
  111.  
  112. ripterm -up %2 %3 %4 %5 %6 %7 %8 %9
  113.  
  114. goto GETOUT
  115.  
  116.  
  117.  
  118. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  119. ::
  120. :: The following section performs full setup functionality
  121. ::
  122. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  123.  
  124. :FULL
  125.  
  126. ripterm -u %2 %3 %4 %5 %6 %7 %8 %9
  127.  
  128. goto GETOUT
  129.  
  130.  
  131.  
  132.  
  133. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  134. ::
  135. :: The following section performs full setup functionality
  136. ::
  137. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  138.  
  139.  
  140. :FULLSET
  141. cls
  142.  
  143. echo.
  144. echo Setup starts RIPterm up into setup mode, prompting you for specific options.
  145. echo If you do not instruct setup to do anything else, you will be placed into
  146. echo "full setup mode", prompting you for all options.  You can force setup to 
  147. echo ask you for only specific things by specifying an option.  The following 
  148. echo options are available:
  149. echo.
  150. echo         -v ... Prompt for new video settings
  151. echo         -c ... Prompt for new communications port settings
  152. echo         -a ... Prompt for new audio board configuration
  153. echo         -p ... Prompt for new printer configuration
  154. echo         -f ... Go into "full setup mode" (configure everything)
  155. echo.
  156. echo If you would like to go into "full setup mode", simply tap the [ENTER]
  157. echo key now.  If you only want to re-configure one option, then hit CTRL-C
  158. echo now and re-run setup with the appropriate option (e.g., SETUP -C, etc).
  159. echo.
  160. echo Hit [ENTER] to perform full setup, or CTRL-C to quit:
  161.  
  162. pause >NUL
  163.  
  164.  
  165. :DOALL
  166.  
  167. ripterm -u
  168.  
  169. goto GETOUT
  170.  
  171.  
  172.  
  173. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  174. ::
  175. :: This is where RIPterm is started up in "full config" mode
  176. ::
  177. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  178.  
  179. :FIRSTIME
  180.  
  181. ripterm
  182.  
  183. goto GETOUT
  184.  
  185.  
  186.  
  187. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  188. ::
  189. :: This is the final exit point for the setup batch file
  190. ::
  191. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  192.  
  193. :GETOUT
  194.  
  195.