home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / HPLINK.ZIP / SETUP.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-01-24  |  4.9 KB  |  104 lines

  1. echo off
  2. :**
  3. :** This program is used to install the Serial Interface Kit files in the
  4. :** specified disk drive and directory.
  5. :**
  6.  
  7. :** If any parameters are specified, process them.
  8. if not "%1"=="" goto :CheckUsage
  9.  
  10. :** Otherwise, display the introduction screen describing how to use this
  11. :** program to install the Serial Interface Kit files.
  12. :Introduction
  13. cls
  14. echo Hewlett-Packard                              Serial Interface Kit Setup Program 
  15.  
  16. echo     This program installs the Serial Interface Kit files in the disk drive
  17. echo     and directory that you specify.  At this point, the current drive
  18. echo     should be the drive containing the Serial Interface Kit disk.               
  19. echo     To install the files, execute a command from the DOS prompt with the
  20. echo     following form:                                                             
  21. echo       SETUP "destination"                                                       
  22. echo     where "destination" is the drive and, optionally, the directory in
  23. echo     which you want the Serial Interface Kit files installed.  (If it
  24. echo     doesn't already exist, any directory you specify is created
  25. echo     automatically.)  For example, the command                                   
  26. echo       SETUP C:\SERIAL                                                           
  27. echo     will copy the files from the current drive to the C: drive, and put
  28. echo     them in the directory \SERIAL.                                              
  29. :** After displaying the introduction screen, quit.
  30. goto :End
  31.  
  32. :CheckUsage
  33. :** If any number of parameters except 1 is specified, display the
  34. :** introduction screen.
  35. if not "%2"=="" goto :Introduction
  36.  
  37. :** Display the installation specifications screen.
  38. cls
  39. echo Hewlett-Packard                              Serial Interface Kit Setup Program 
  40.  
  41. echo     Serial Interface Kit installation has been specified as follows:            
  42. echo     Install from current drive to drive and directory                           
  43. echo       %1                                                                                
  44.  
  45. :** Display a verification prompt to allow the user to notice any
  46. :** incorrect specification.
  47. echo     Verify that the destination drive and directory are specified 
  48. echo     correctly.                                                                  
  49. echo     If you need to quit this setup program to change the destination
  50. echo     specification, press the [Ctrl] and [Break] keys simultaneously.  
  51. echo     To continue the file installation, press [Enter].                           
  52.  
  53. :** Pause to allow the user to verify the specification.
  54. pause
  55.  
  56. :** If the destination directory does not exist, try to create it.
  57. if exist %1\nul goto :DestExists
  58. mkdir %1
  59. :** Verify that the directory was created.
  60. if exist %1\nul goto :DestExists
  61. echo Error: Can not create destination directory %1
  62. goto :End
  63.  
  64. :DestExists
  65.  
  66. :** Display the installation in progress screen.
  67. cls
  68. echo Hewlett-Packard                              Serial Interface Kit Setup Program 
  69.  
  70. echo         Serial Interface Kit installation in progress.
  71. echo         Installing from current drive to drive and directory                                                          
  72. echo           %1                                                                                
  73.  
  74. :** Copy all the source files to the destination directory.
  75. copy \*.* %1
  76.  
  77. :** Display a verification screen to allow the user to notice any
  78. :** error messages.
  79. echo     Verify that there are no error messages above indicating a problem
  80. echo     installing the Serial Interface Kit files.                                      
  81. echo     If you need to quit this setup program to correct any problems, press
  82. echo     the [Ctrl] and [Break] keys simultaneously.  To complete the file
  83. echo     installation, press [Enter].                                                    
  84.  
  85. :** Pause to allow the user to verify the installation.
  86. pause
  87.  
  88. :** Display the closing screen.
  89. cls
  90. echo Hewlett-Packard                              Serial Interface Kit Setup Program 
  91.  
  92. echo     Serial Interface Kit file installation is complete.  If you want the
  93. echo     Kermit program (and other programs) to be included in your search path,
  94. echo     modify your PATH variable to include the path                                   
  95. echo       %1                                                                                
  96. echo     Now that the files are installed, you're ready to learn about Kermit
  97. echo     protocol and the other applications you've received.  To get started,
  98. echo     read the README.TXT file in the directory listed above.  (You can do
  99. echo     this by using your favorite word processing program or the MORE command
  100. echo     in DOS.  Or, if you have a printer connected to your computer, use the
  101. echo     PRINT command in DOS to get a printed copy of the file.)                        
  102.  
  103. :End
  104.