home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Animation & Sound / SOS-ANIM_SOUND.ISO / best_50 / icndos17.zip / RUN.BAT < prev    next >
DOS Batch File  |  1993-06-21  |  3KB  |  109 lines

  1. @echo off
  2. if %1!==! goto uhoh
  3.  
  4. REM                       *** IconDOS - DEMO MENU ***
  5. REM
  6. REM This batch file illustrates how to set up a single batch file to handle
  7. REM any number of IconDOS menu icons.  Each icon in the demo menu (DEMO.MNU)
  8. REM has a command string which calls this file, RUN.BAT, and passes a single
  9. REM unique parameter.  This parameter identifies the icon that was selected.
  10. REM The 'goto %1' below transfers control to a label in this file matching
  11. REM this parameter.  From there the commands are executed.  For example, the
  12. REM icon for dBase IV has the command string: 'RUN DB4'.  This command string
  13. REM calls RUN.BAT with the parameter, 'DB4'.  DOS replaces the %1 below with
  14. REM the first parameter found in the command string (DB4 in this case)
  15. REM which results in 'goto DB4'.
  16.  
  17. goto %1
  18.  
  19. :123
  20.  
  21. REM To actually execute Lotus from this icon, replace the 'echo' line below
  22. REM with the commands to change to your Lotus directory and execute 123.
  23. REM These commands should look something like:
  24. REM       CD\LOTUS
  25. REM       123
  26. REM The same general method can be used to set up a command set for any of
  27. REM the labels/parameters listed below.
  28.  
  29. echo DEMO MENU - You selected Lotus 1-2-3
  30. goto done
  31.  
  32. :DB4
  33. echo DEMO MENU - You selected dBase IV
  34. goto done
  35.  
  36. :WS
  37. echo DEMO MENU - You selected WordStar
  38. goto done
  39.  
  40. :WP
  41. echo DEMO MENU - You selected WordPerfect
  42. goto done
  43.  
  44. :QUICKEN
  45. echo DEMO MENU - You selected Quicken
  46. goto done
  47.  
  48. :MOUSE
  49. echo DEMO MENU - You selected the Logitech Mouse Driver
  50. goto done
  51.  
  52. :COREL
  53. echo DEMO MENU - You selected Corel Draw
  54. goto done
  55.  
  56. :CALC
  57. echo DEMO MENU - You selected the Calculator
  58. goto done
  59.  
  60. :WINDO
  61. echo DEMO MENU - You selected MicroSoft Windows
  62. goto done
  63.  
  64. :PAINT
  65. echo DEMO MENU - You selected Paint
  66. goto done
  67.  
  68. :BJ
  69. echo DEMO MENU - You selected Black Jack
  70. goto done
  71.  
  72. :FLY
  73. echo DEMO MENU - You selected Flight Simulator
  74. goto done
  75.  
  76. REM *** Below are the options for the submenu, SUBDEMO.MNU ***
  77.  
  78. :NETWK
  79. echo DEMO SUB-MENU - You selected Network
  80. goto done
  81.  
  82. :NOTE
  83. echo DEMO SUB-MENU - You selected NotePad
  84. goto done
  85.  
  86. :CD
  87. echo DEMO SUB-MENU - You selected CD-ROM
  88. goto done
  89.  
  90. :uhoh
  91.  
  92. REM This message prints if no parameters were passed
  93.  
  94. echo This batch file requires IconDOS
  95. goto stop
  96.  
  97. :done
  98.  
  99. REM This is the clean up area which contains the commands needed to return
  100. REM to IconDOS after running a command set.  For an actual menu, the
  101. REM 'echo' line below should be replaced with something like:
  102. REM     C:
  103. REM     CD\MENU
  104.  
  105. echo If this had been an actual menu, your software would be running now.
  106.  
  107. ICONDOS DEMO
  108. :stop
  109.