home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / dospro11.arj / ADD2DOS5.BAT next >
DOS Batch File  |  1991-07-30  |  7KB  |  111 lines

  1. @echo off
  2. rem  add2dos5.bat  -  Update DOS 5's DOSSHELL.INI with proprietary groups 
  3. rem                   and programs and DOSHELP.HLP with documentation.
  4. rem  
  5. rem  Copyright 1991 John B. Allison
  6. rem
  7. cls
  8. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  9. echo ║ ADD2DOS5 installs documentation for "DOS Extensions for Professionals" into ║
  10. echo ║ a DOS 5 system.  If you are not running DOS 5, please CTRL-C out of this    ║
  11. echo ║ batch file now.                                                             ║
  12. echo ║                                                                             ║
  13. echo ║ ADD2DOS5 must be run from the distribution disk.                            ║
  14. echo ║                                                                             ║
  15. echo ║ ADD2DOS5 must be run with the Drive and Directory containing the DOS 5      ║
  16. echo ║ operating system as the first argument.                                     ║
  17. echo ║                                                                             ║
  18. echo ║ For example:                                                                ║
  19. echo ║                                                                             ║
  20. echo ║                "A:> ADD2DOS5  C:\DOS"                                       ║
  21. echo ║                                                                             ║
  22. echo ║ Inadditon, the DOS program EDLIN must be available via your PATH.  This     ║
  23. echo ║ normally is the case in standard DOS 5 installations.                       ║
  24. echo ║                                                                             ║
  25. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  26. pause
  27. if not exist xdoshelp.ad1 goto bad1
  28. if not %1x == x goto lookup
  29. :bad1
  30. cls
  31. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  32. echo ║ ADD2DOS5 must be run from the distribution disk.                            ║
  33. echo ║                                                                             ║
  34. echo ║ ADD2DOS5 must be run with the Drive and Directory containing the DOS 5      ║
  35. echo ║ operating system as the first argument.                                     ║
  36. echo ║                                                                             ║
  37. echo ║ For example:                                                                ║
  38. echo ║                                                                             ║
  39. echo ║                "A:> ADD2DOS5  C:\DOS"                                       ║
  40. echo ║                                                                             ║
  41. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  42. goto exit
  43. :lookup
  44. if not exist %1\DOSHELP.HLP goto bad2
  45. if exist %1\DOSSHELL.INI goto edit
  46. :bad2
  47. cls
  48. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  49. echo ║  Unable to locate %1\DOSSHELL.INI                                       ║
  50. echo ║                or %1\DOSHELP.HLP.                                       ║
  51. echo ║                                                                             ║
  52. echo ║  Either an incorrect Drive/Directory combination for system files was given ║
  53. echo ║  for the first argument, or this is not a DOS 5 Operating System.           ║
  54. echo ║                                                                             ║
  55. echo ║  If you are not running DOS 5, this procedure is not necessary and should   ║
  56. echo ║  not be run.                                                                ║
  57. echo ║                                                                             ║
  58. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  59. goto exit
  60. :edit
  61. rem
  62. rem  Update DOSHELP.HLP  (/B- no backup; /U- no upper case force)
  63. rem
  64. addhelp xdoshelp.ad1 %1     /U-
  65. addhelp xdoshelp.ad2 %1 /B- /U-
  66. addhelp xdoshelp.ad3 %1 /B- /U-
  67. addhelp xdoshelp.ad4 %1 /B- /U-
  68. addhelp xdoshelp.ad5 %1 /B- /U-
  69. addhelp xdoshelp.ad6 %1 /B- /U-
  70. addhelp xdoshelp.ad7 %1 /B- /U-
  71. addhelp xdoshelp.ad8 %1 /B- /U-
  72. rem
  73. rem  Add Group and Programs to DOSSHELL.INI using edlin.
  74. rem
  75. edlin %1\dosshell.ini <xdosshel.scr
  76. cls
  77. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  78. echo ║  This procedure has added documentation, group, and program information to  ║
  79. echo ║  system files.  This action will allow you to execute "DOS Extensions for   ║
  80. echo ║  Professionals" from within DOSSHELL and to realize the full advantages of  ║
  81. echo ║  DOS's integrated help system.                                              ║
  82. echo ║                                                                             ║
  83. echo ║  You are free to change the order of the DOS Extensions Group within        ║
  84. echo ║  DOSSHELL's Main or of the individual programs within the Group itself.     ║
  85. echo ║  (See your DOS manual - Customizing MS-DOS Shell.)                          ║
  86. echo ║                                                                             ║
  87. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  88. pause
  89. cls
  90. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  91. echo ║  Your orginal system files have been temporarily preserved with the exten-  ║
  92. echo ║  sion .BAK.  You will want to rename those changed files to something more  ║
  93. echo ║  permanent in case you should ever need to restore them to their exact      ║
  94. echo ║  condition before this procedure ran.  To do so, make the system disk your  ║
  95. echo ║  current drive, change directory (CD) to %1, and rename the files.      ║
  96. echo ║                                                                             ║
  97. echo ║           Changed Files     Original Files      Suggested New Names         ║
  98. echo ║                                                                             ║
  99. echo ║           dosshell.ini      dosshell.bak        dosshell.v1                 ║
  100. echo ║           doshelp.hlp       doshelp.bak         doshelp.v1                  ║
  101. echo ║                                                                             ║
  102. echo ║  e.g.                                                                       ║
  103. echo ║                                                                             ║
  104. echo ║        "A:> C:"                                                             ║
  105. echo ║        "C:> CD \DOS"                                                        ║
  106. echo ║        "C:> REN  DOSSHELL.BAK  DOSSHELL.V1"                                 ║
  107. echo ║        "C:> REN  DOSHELP.BAK   DOSHELP.V1"                                  ║
  108. echo ║                                                                             ║
  109. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  110. :exit
  111.