home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0330 - 0339 / ibm0330-0339 / ibm0333.tar / ibm0333 / NETEXXL2.ZIP / INSTALL.CMD < prev    next >
Encoding:
Text File  |  1994-09-19  |  5.0 KB  |  109 lines

  1. @ECHO OFF
  2. @rem ***********************************************************************
  3. @rem  FILE:  Install.cmd
  4. @rem
  5. @rem  DESCRIPTION:
  6. @rem     A batch file which copies all the files required for the 
  7. @rem     Intel Netport Monitor for OS/2 1.3
  8. @rem
  9. @rem  ASSUMPTIONS:
  10. @rem     There is a hard disk associated with the value passed in by the user,
  11. @rem     There is an assumed directory structure.
  12. @rem     The batch file builds the subdirectory structure required.
  13.  
  14. @rem -------------------------------------------------------------
  15. @rem Check the first value.  Is it a floppy?
  16. @rem -------------------------------------------------------------
  17. if a: == %1 goto chk2 
  18. if A: == %1 goto chk2 
  19. if b: == %1 goto chk2 
  20. if B: == %1 goto chk2 
  21. :bummer
  22. @echo   ┌────────────────────────────────────────────────────────────────┐
  23. @echo   │                                                                │
  24. @echo   │  This batch file should be invoked by typing "install A: C:"   │
  25. @echo   │  where the first drive is the source, and the second drive     │
  26. @echo   │  is the destination.                                           │
  27. @echo   │                                                                │
  28. @echo   │  Press CONTROL C to stop this installation.                    │
  29. @echo   │                                                                │
  30. @echo   └────────────────────────────────────────────────────────────────┘
  31. @pause
  32. goto end
  33. :chk2
  34. @rem This is a kluge way to check for a valid drive.  If you wish to add
  35. @rem a drive not on the list, just add another "IF" statment.
  36. if c: == %2 goto start
  37. if C: == %2 goto start
  38. if d: == %2 goto start
  39. if D: == %2 goto start
  40. if e: == %2 goto start
  41. if E: == %2 goto start
  42. if f: == %2 goto start
  43. if F: == %2 goto start
  44. goto bummer
  45.  
  46. :start
  47. @%2
  48. @cd\
  49. if exist \netport\*.* goto chngdir
  50.   md \netport
  51. :chngdir
  52. @cd netport
  53.  
  54. @echo   ┌────────────────────────────────────────────────────────────────┐
  55. @echo   │   Copying files                                                │
  56. @echo   └────────────────────────────────────────────────────────────────┘
  57. copy %1\lmnpmon.exe
  58. if ERRORLEVEL 1 goto running
  59. copy %1\update.exe
  60. update
  61. if ERRORLEVEL 1 goto end
  62. @cd\
  63. @echo   ┌────────────────────────────────────────────────────────────────┐
  64. @echo   │   Starting INTEL NETPORT MONITOR Program.                      │
  65. @echo   └────────────────────────────────────────────────────────────────┘
  66. detach %2\netport\lmnpmon
  67.  
  68. :reminders
  69. @echo   ┌────────────────────────────────────────────────────────────────┐
  70. @echo   │   You have successfully installed the Intel Netport Monitor    │
  71. @echo   │   program, and it is currently running.                        │
  72. @echo   └────────────────────────────────────────────────────────────────┘
  73. @echo   ┌────────────────────────────────────────────────────────────────┐
  74. @echo   │   Before you can print with the Netport print server with the  │
  75. @echo   │   LAN Manager or LAN Server protocol, you must                 │
  76. @echo   │       Create queue(s),                                         │
  77. @echo   │       Map the queue(s) to LPT1, LPT2, or LPT3, and             │
  78. @echo   │       Make the queues a shared network resource.               │
  79. @echo   │   Instructions for this are on page 29 of the manual.          │
  80. @echo   │                                                                │
  81. @echo   │   You must also share the Netport directory on the network.    │
  82. @echo   │   If you installed the monitor onto the C: drive an example    │
  83. @echo   │   command line would be                                        │
  84. @echo   │                                                                │
  85. @echo   │   net share netport=c:\netport                                 │
  86. @echo   └────────────────────────────────────────────────────────────────┘
  87. goto end
  88.  
  89. :running
  90. @echo   ┌────────────────────────────────────────────────────────────────┐
  91. @echo   │   It appears that there is an Intel Netport Monitor already    │
  92. @echo   │   installed and running.  In order to install or update this   │
  93. @echo   │   software you must use Netport Manager on a Windows           │    
  94. @echo   │   workstation.                                                 │
  95. @echo   │                                                                │
  96. @echo   │   1) From Netport Manager's Main Menu, select the Manage       │
  97. @echo   │      pull-down, and click the Monitor option.                  │
  98. @echo   │                                                                │
  99. @echo   │   2) Select the LAN Manager or LAN Server server that          │
  100. @echo   │      contains the monitor you want to shut down.               │
  101. @echo   │                                                                │
  102. @echo   │   3) Select OK to complete the shutdown process and rerun      │
  103. @echo   │      the install program.                                      │
  104. @echo   │                                                                │
  105. @echo   └────────────────────────────────────────────────────────────────┘
  106.  
  107. :end
  108. @echo .
  109.