home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_38 / SPPRO406.ZIP / CUS-INS.BAT < prev    next >
DOS Batch File  |  1991-10-07  |  3KB  |  87 lines

  1. echo off
  2. echo About to install Sequencer Plus Pro with the following parameters:
  3. echo Drive      %1
  4. echo Directory  %2
  5. if "%3==" goto DEF_ADD
  6.     echo Address    %3
  7.     goto SH_PORT
  8. :DEF_ADD
  9.     echo Address    /addr:220
  10. :SH_PORT
  11.  
  12. if "%4==" goto DEF_PT1
  13.     echo FM Port    %4
  14.     goto VF_PARAM
  15. :DEF_PT1
  16.     echo FM Port    /port:2
  17. :VF_PARAM
  18.  
  19. rem make sure logged onto disk:
  20. if exist CUS-INS.BAT goto OK_START
  21.     echo  
  22.     echo You must log onto the drive with the Sequencer Plus Pro disk in it before
  23.     echo Installing (e.g. if the disk is in drive A:, type A: [Enter]
  24.     echo then run the installation program.
  25.     goto END
  26. :OK_START
  27.  
  28. echo  
  29. echo Are these options correct? (type Y or N)
  30. YorN
  31. if errorlevel 1 goto NO
  32. echo Are you using a Casio keyboard for your master keyboard? (type Y or N)
  33. YorN
  34. rem none of the commands between here and the next errorlevel check set the
  35. rem errorlevel, so it is ok to ask the question here & look at errorlevel later.
  36.  
  37. rem make sure drive letter is valid:
  38. if "%2==" goto BAD_CMD
  39. for %%d in (A: B: C: D: E: F: G: H: I: J: K: L: M:) do if "%%d"=="%1" goto OK_DRIVE
  40. for %%d in (N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if "%%d"=="%1" goto OK_DRIVE
  41. for %%d in (a: b: c: d: e: f: g: h: i: j: k: l: m:) do if "%%d"=="%1" goto OK_DRIVE
  42. for %%d in (n: o: p: q: r: s: t: u: v: w: x: y: z:) do if "%%d"=="%1" goto OK_DRIVE
  43. goto BAD_CMD
  44.  
  45. :OK_DRIVE
  46. rem make directories
  47. echo If the target directories exist, Ignore the
  48. echo "Unable to create directory" messages.
  49. md %1%2
  50. md %1%2.\SONGS
  51.  
  52. echo Copying files...
  53. for %%f in (SPPRO.EXE BASHELP.SP0 TAPISB.COM ) do copy /v %%f %1%2
  54. for %%f in (*.SNG) do copy /v %%f %1%2.\SONGS
  55. for %%f in (*.MID) do copy /v %%f %1%2.\SONGS
  56.  
  57. echo Making SP.BAT batch file...
  58.  
  59. echo tapisb %3 %4> %1%2.\SP.BAT
  60.  
  61. echo if "%%1" == "/rem" goto REMOVE> %1%2.\DRIVER.BAT
  62. echo if "%%1" == "/REM" goto REMOVE>> %1%2.\DRIVER.BAT
  63. echo tapisb %3 %4>> %1%2.\DRIVER.BAT
  64. if errorlevel 1 goto NOCASIO
  65.     echo sppro /CASIO %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >> %1%2.\SP.BAT
  66.     goto FINISH
  67. :NOCASIO
  68.     echo sppro %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >> %1%2.\SP.BAT
  69. :FINISH
  70. echo tapisb /rem >> %1%2.\SP.BAT
  71. echo goto OUT>> %1%2.\DRIVER.BAT
  72. echo :REMOVE>> %1%2.\DRIVER.BAT
  73. echo tapisb /rem>> %1%2.\DRIVER.BAT
  74. echo :OUT>> %1%2.\DRIVER.BAT
  75. echo  
  76. echo Sequencer Plus Pro is now installed.  To run Sequencer Plus Pro, log onto
  77. echo %1%2 and type SP [Enter].
  78. goto END
  79. :BAD_CMD
  80.     echo You did not run the CUS-INS command with the correct command line parameters.
  81.     echo Run INSTALL on the Sequencer Plus Pro disk to find out how to run CUS-INS.
  82.     goto END
  83. :NO
  84.     echo Run the install program again with the correct options.
  85.     echo Run INSTALL on the Sequencer Plus Pro disk to find out how to run CUS-INS.
  86. :END
  87.