home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- @rem ***********************************************************************
- @rem FILE: Install.cmd
- @rem
- @rem DESCRIPTION:
- @rem A batch file which copies all the files required for the
- @rem Intel Netport Monitor for OS/2 1.3
- @rem
- @rem ASSUMPTIONS:
- @rem There is a hard disk associated with the value passed in by the user,
- @rem There is an assumed directory structure.
- @rem The batch file builds the subdirectory structure required.
-
- @rem -------------------------------------------------------------
- @rem Check the first value. Is it a floppy?
- @rem -------------------------------------------------------------
- if a: == %1 goto chk2
- if A: == %1 goto chk2
- if b: == %1 goto chk2
- if B: == %1 goto chk2
- :bummer
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ │
- @echo │ This batch file should be invoked by typing "install A: C:" │
- @echo │ where the first drive is the source, and the second drive │
- @echo │ is the destination. │
- @echo │ │
- @echo │ Press CONTROL C to stop this installation. │
- @echo │ │
- @echo └────────────────────────────────────────────────────────────────┘
- @pause
- goto end
- :chk2
- @rem This is a kluge way to check for a valid drive. If you wish to add
- @rem a drive not on the list, just add another "IF" statment.
- if c: == %2 goto start
- if C: == %2 goto start
- if d: == %2 goto start
- if D: == %2 goto start
- if e: == %2 goto start
- if E: == %2 goto start
- if f: == %2 goto start
- if F: == %2 goto start
- goto bummer
-
- :start
- @%2
- @cd\
- if exist \netport\*.* goto chngdir
- md \netport
- :chngdir
- @cd netport
-
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ Copying files │
- @echo └────────────────────────────────────────────────────────────────┘
- copy %1\lmnpmon.exe
- if ERRORLEVEL 1 goto running
- copy %1\update.exe
- update
- if ERRORLEVEL 1 goto end
- @cd\
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ Starting INTEL NETPORT MONITOR Program. │
- @echo └────────────────────────────────────────────────────────────────┘
- detach %2\netport\lmnpmon
-
- :reminders
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ You have successfully installed the Intel Netport Monitor │
- @echo │ program, and it is currently running. │
- @echo └────────────────────────────────────────────────────────────────┘
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ Before you can print with the Netport print server with the │
- @echo │ LAN Manager or LAN Server protocol, you must │
- @echo │ Create queue(s), │
- @echo │ Map the queue(s) to LPT1, LPT2, or LPT3, and │
- @echo │ Make the queues a shared network resource. │
- @echo │ Instructions for this are on page 29 of the manual. │
- @echo │ │
- @echo │ You must also share the Netport directory on the network. │
- @echo │ If you installed the monitor onto the C: drive an example │
- @echo │ command line would be │
- @echo │ │
- @echo │ net share netport=c:\netport │
- @echo └────────────────────────────────────────────────────────────────┘
- goto end
-
- :running
- @echo ┌────────────────────────────────────────────────────────────────┐
- @echo │ It appears that there is an Intel Netport Monitor already │
- @echo │ installed and running. In order to install or update this │
- @echo │ software you must use Netport Manager on a Windows │
- @echo │ workstation. │
- @echo │ │
- @echo │ 1) From Netport Manager's Main Menu, select the Manage │
- @echo │ pull-down, and click the Monitor option. │
- @echo │ │
- @echo │ 2) Select the LAN Manager or LAN Server server that │
- @echo │ contains the monitor you want to shut down. │
- @echo │ │
- @echo │ 3) Select OK to complete the shutdown process and rerun │
- @echo │ the install program. │
- @echo │ │
- @echo └────────────────────────────────────────────────────────────────┘
-
- :end
- @echo .
-