home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / i / inst1.zip / SETUP.BAT < prev   
DOS Batch File  |  1992-10-01  |  2KB  |  56 lines

  1. echo off
  2. cls
  3. if "%1"=="" goto FIRSTRUN
  4. goto START
  5.  
  6.          This is an example program to run after INSTALL is done.  To
  7.          run this batch file, put the following line in INSTALL.DAT:
  8.  
  9.          .DOS setup %1
  10.  
  11.          Note how this is used in the "remove disk" message, below.
  12.  
  13.                         **********************
  14.                         The ".DOS xxx" Keyword
  15.                         **********************
  16.  
  17.          Above, the "%1"=="" is a check for ANY parameter.
  18.  
  19.          If none, the "remove disk" message skipped.  Since only your
  20.          INSTALL program passes a parameter, the user can re-run this
  21.          batch program later, without the "remove disk" message.
  22.  
  23.  
  24.          NOTES
  25.          -----
  26.          1.  The ".DOS xxx" keyword in INSTALL.DAT is not limited to
  27.          batch files; it could be an EXE or COM program.  It works
  28.          exactly like the user had typed the command at the DOS
  29.          prompt; ie:  "C:\mydir\>setup x".
  30.  
  31.          2.  Some of the "echo  " commands below appear to be empty
  32.          lines, but are not.  The invisible character, ASCII #255, is
  33.          used after "echo " for blank lines.  To create this special
  34.          character, hold down the ALT key, press 255 (two, five,
  35.          five) on the numeric keypad at your right.
  36.  
  37. :START
  38. echo  
  39. echo  
  40. echo ▐▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌
  41. echo ▐ Please remove the INSTALL Diskette from drive %1              ▌
  42. echo ▐▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌
  43. echo  
  44. echo 
  45. pause
  46.  
  47. :FIRSTRUN
  48. echo ╔═══════════════════════════════════════════════════════════════╗
  49. echo ║ Running program...                                            ║
  50. echo ╚═══════════════════════════════════════════════════════════════╝
  51. rem dothis /setup
  52. rem dothat
  53. rem dounique
  54.  
  55. :DONE
  56. echo Whew!  Finally finished; have a nice day.