home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / util2 / masdir43.lzh / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-06-04  |  5KB  |  134 lines

  1. Echo Off
  2. If exist sdl_get.exe goto start
  3. Echo Unable to locate the file sdl_get.EXE.  This file is on your
  4. Echo original MASDIR disk or a backup copy.  Please run INSTALL again
  5. Echo from the drive and/or directory that contains the MASDIR files.
  6. :start
  7. sdl_get BE %A%
  8. Echo * * *
  9. Echo With your permission, INSTALL will copy a few of the MASDIR files
  10. Echo to your hard disk or to another floppy.  No changes will be made
  11. Echo to your AUTOEXEC.BAT or to your CONFIG.SYS.  You may abort this
  12. Echo program at any time by pressing Ctrl-C or Ctrl-Break.  You may
  13. Echo also press Esc at any prompt to cancel the rest of the program.
  14. Echo Do not press Enter or Return after you press another key unless you
  15. Echo have been asked to enter more than one character at a prompt.
  16. :getdrive
  17. sdl_get YE
  18. Set D=%GET%
  19. If exist %D%:sdl.com goto isthere
  20. :whatdrive
  21. Echo * * *
  22. Echo The current drive is %D%:
  23. Echo SDL.COM does not appear to be on this drive.  Please enter the
  24. Echo one-letter designator of the drive where the MASDIR disk is.
  25. :again
  26. Echo SDL.COM was not found on the drive you specified.  If it is in
  27. Echo a subdirectory on that drive we can make that subdirectory
  28. Echo current for the drive so SDL.COM can be found.  If so,
  29. Echo enter the drive:\directory, or just Return if you want to exit
  30. Echo to change disks or directories. Press Return after you make your entry.
  31. Echo * * *
  32. sdl_get S "Please enter the drive:\directory to find SDL.COM: "
  33. if not errorlevel 1 goto exit
  34. Set D=%GET%
  35. if not errorlevel 2 goto exist
  36. cd %D%
  37. Echo That should do it, now please enter the one-letter drive
  38. Echo designator for that same disk.  This is necessary for proper
  39. Echo operation of INSTALL.
  40. :askdrive
  41. Echo * * *
  42. sdl_get C "Enter one letter (a,b,c,d,e,f,g,h,i): " ABCDEFGHI}~
  43. If %GET% == ~ go to exit
  44. If %GET% == } goto getdrive
  45. Set D=%GET%
  46. :exist
  47. If not exist %D%:sdl.com goto again
  48. :ISTHERE
  49. Echo * * *
  50. Echo To skip the action of any question, just press Enter or Return.
  51. Echo * * *
  52. Echo SDL.COM is an excellent replacement for the DOS DIR command.
  53. Echo It is much more versatile than DIR.  The first step is to copy
  54. Echo SDL.COM to the directory with your other DOS command files and/or
  55. Echo your other utility programs.  Please enter the drive and
  56. :askdest
  57. Echo directory that you want SDL.COM to be copied to.  The directory
  58. Echo must already exist, and it should be one that is normally on your
  59. Echo DOS path.  For example, you might enter C:\DOS, or C:\BIN, or
  60. Echo C:\UTIL if you use one of those directories for executable files.
  61. Echo * * *
  62. sdl_get S "Please enter the drive:\directory now: "
  63. If not errorlevel 1 goto next1
  64. Set P=%GET%
  65. Echo You have entered %P%
  66. Echo The command will be COPY %D%:SDL.COM %P%\SDL.COM
  67. sdl_get C "Is this correct (Y,N)? " YN}~
  68. If %GET% == ~ goto exit
  69. If %GET% == } goto next1
  70. If not errorlevel 89 goto isthere
  71. COPY %D%:SDL.COM %P%\SDL.COM
  72. Echo This is a test of running SDL in its new location.
  73. Echo If SDL pauses with a menu, just press Esc.
  74. pause
  75. %P%\SDL %P%\sdl.com/M/C-
  76. If errorlevel 1 goto next1
  77. Echo For some reason SDL does not seem to have been copied to the
  78. Echo destination you specified.  Please re-enter the drive and
  79. goto askdest
  80. :next1
  81. Echo * * *
  82. Echo The next step is to create a working disk or directory for you
  83. Echo to customize SDL.COM.  If you don't want to do this now, press Esc
  84. Echo or Return at the prompt.
  85. ECHO * * *
  86. ECHO This program will create a working disk or directory
  87. ECHO for the purpose of running the SDLSETUP program.
  88. ECHO * * *
  89. ECHO It is necessary to enter the drive and/or directory
  90. ECHO that you want to use for the working area.  A RAM disk
  91. ECHO would be ideal because it speeds things up and once
  92. ECHO you customize SDL.COM the way you want it, it is not
  93. ECHO necessary to save the working directory.  A directory on
  94. Echo a hard disk works very well also, and the work can easily
  95. Echo be done on a floppy but it will be a little slower.
  96. ECHO * * *
  97. ECHO Enter the drive and/or directory that you want to use.  If you
  98. Echo include a directory, be sure that the directory exists, or that
  99. Echo it is OK to use the DOS MD (Make Directory) command to create it.
  100. ECHO * * *
  101. ECHO Some examples of what you might enter are:
  102. ECHO B:       E:        C:\SDL       D:\MASDIR
  103. sdl_get S "Please enter the drive:\directory now: "
  104. If not errorlevel 1 goto exit
  105. Set P=%GET%
  106. Echo * * *
  107. ECHO Creating a working area for SDLSETUP as %P%.
  108. echo If you see the message "Unable to create directory"
  109. ECHO it means that the directory already exists, that it is a
  110. echo ROOT directory, or that the specification was incorrect.
  111. ECHO This does NOT indicate a problem unless you have made
  112. ECHO a mistake in your specification.
  113. echo * * *
  114. ECHO The command will be: MkDir %P%
  115. sdl_get C "Is this correct (Y,N)? " YN~}
  116. If errorlevel 125 goto exit
  117. if errorlevel 78 if not errorlevel 79 goto next1
  118. md %P%
  119. Echo The next command will be COPY %D%:SDL*.* %P%
  120. sdl_get C "Is this correct (Y,n)? " YN}~
  121. If errorlevel 125 goto exit
  122. If not errorlevel 89 goto next1
  123. copy %D%:sdl*.* %P%
  124. echo Files copied to %P%
  125. :exit
  126. Sdl_get BE %A%
  127. Set D=
  128. Set P=
  129. If exist menu.bat menu
  130. Set A=
  131. Set GET=
  132. Echo Exiting to DOS now!
  133. If exist utility.bat utility
  134.