home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / 1142a.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1994-06-21  |  4KB  |  120 lines

  1. @echo off
  2. cls
  3. setlocal
  4. echo  DigiBoard Inc. LAN Distance Installation
  5.  
  6.  
  7.  
  8. rem ------ Test for valid LAN Distance MAC directory ---------
  9.  
  10.  
  11. if "%1" == "" goto BOGUSDRIVE
  12.  
  13. if NOT EXIST %1\IBMCOM\MACS goto BADMACS
  14.  
  15.  
  16.  
  17.  
  18. rem ------ Copy file to \ibmcom\macs -------------------------
  19.  
  20.  
  21. echo    Copying files
  22.  
  23. copy dgafgp.os2   %1\ibmcom\macs > NULL
  24. copy dgpoller.exe %1\ibmcom\macs > NULL
  25. copy *.BIN        %1\ibmcom\macs > NULL
  26. copy *.SYM        %1\ibmcom\macs > NULL
  27.  
  28.  
  29. echo    Files copied
  30.  
  31.  
  32. rem ------ Test for config.sys file --------------------------
  33.  
  34. set DRV=%2
  35. if "%2" == "" set DRV=%1
  36. if NOT EXIST %DRV%\CONFIG.SYS  goto BADCFG
  37.  
  38.  
  39.  
  40. rem ------ Add a config line choices -------------------------
  41.  
  42.  
  43. echo    Updating %DRV%\config.sys
  44. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  45. echo  rem DigiBoard PC/16e, PC and MC/8e, 4e, 2e, and PC/Xi  >> %DRV%\config.sys
  46. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:320  >> %DRV%\config.sys
  47. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  48. echo  rem DigiBoard MC/16i, MC/8i, MC/4i  >> %DRV%\config.sys
  49. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:F1F0  >> %DRV%\config.sys
  50. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  51. echo  rem DigiBoard PC/Xem, MC/Xem  >> %DRV%\config.sys
  52. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:324 /T:P  >> %DRV%\config.sys
  53. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  54. echo  rem DigiBoard EISA Xem, slot 3  >> %DRV%\config.sys
  55. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:3005 /T:P  >> %DRV%\config.sys
  56. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  57. echo  rem DigiBoard ISA C/X 1 concentrator  >> %DRV%\config.sys
  58. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:328 /T:I10  >> %DRV%\config.sys
  59. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  60. echo  rem DigiBoard EISA C/X 1 concentrator, slot 3  >> %DRV%\config.sys
  61. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:3005 /T:E10  >> %DRV%\config.sys
  62. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  63. echo  rem DigiBoard Micro Channel C/X 1 concentrator  >> %DRV%\config.sys
  64. echo  rem DEVICE=%1\IBMCOM\MACS\DGAFGP.OS2 /M:D0000 /P:328 /T:M10  >> %DRV%\config.sys
  65. echo  rem *------------------------------------------------------------------*  >> %DRV%\config.sys
  66.  
  67. echo  RUN=%1\IBMCOM\MACS\DGPOLLER.EXE  >> %DRV%\config.sys
  68. rem   echo  DEVICE=%1\IBMCOM\MACS\DGANDIS.OS2  >> %DRV%\config.sys
  69.  
  70.  
  71. rem ------ Run LAPS ------------------------------------------
  72.  
  73. if NOT EXIST %1\ibmcom\laps.exe  goto BADLAPS
  74. echo    Running LAPS to Install DigiBoard Network Support.
  75. echo        Select "Install" from the LAPS main screen.
  76. echo        Press any Key to run LAPS.
  77. pause > NULL
  78.  
  79. %1\ibmcom\laps
  80.  
  81. :CFGMSG
  82.  
  83. echo    Run LAN Distance "Settings" to configure for the DigiBoard Adapter(s)
  84. echo    and edit your new CONFIG.SYS to reflect the DigiBoard(s) installed.
  85. echo        Refer to the INSTALL.DOC file on this diskette.
  86. goto EXIT
  87.  
  88.  
  89. rem ------ ERROR HANDLERS ------------------------------------
  90.  
  91. :BOGUSDRIVE
  92. echo    *Error* - Invalid Driver Letter Specified
  93. echo    USAGE :  install <drive:>
  94.  
  95. goto EXIT
  96.  
  97. :BADMACS
  98. echo    *Error* - %1\IBMCOM\MACS directory not found.
  99. goto USAGE
  100.  
  101.  
  102. :BADCFG
  103. echo    *Error* - CONFIG.SYS not on specified drive "%DRV%"
  104. :USAGE
  105. echo    USAGE : install  LAN Distance Drive:  [CONFIG.SYS Drive:]
  106. goto EXIT
  107.  
  108.  
  109. :BADLAPS
  110. echo    *Error* - %1\ibmcom\laps.exe was not found.
  111. echo               Run LAPS manually to install DigiBoard Network Support.
  112. goto CFGMSG
  113.  
  114.  
  115. rem ------ EXIT ----------------------------------------------
  116.  
  117.  
  118. :EXIT
  119. endlocal
  120.