home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Animation & Sound / SOS-ANIM_SOUND.ISO / best_50 / icndos17.zip / SETUP.DOC < prev    next >
Text File  |  1993-11-11  |  4KB  |  83 lines

  1.                                 SETUP.DOC
  2.  
  3. IconDOS is configured using simple DOS batch files.  IconDOS can be
  4. thought of as providing a graphical front end to a batch file.  There
  5. are 2 options available for creating the batch file:
  6.  
  7.  
  8. OPTION 1:
  9.  
  10. Build a batch file for each icon.  The name of the batch file becomes
  11. the command string for the icon.  Use IconEDIT to actually attach the
  12. command string to the icon.  See ICONEDIT.DOC for more details.
  13.  
  14. As it's final act, the batch file must return to the IconDOS directory,
  15. restart IconDOS and reload your menu.  Otherwise, you will be left
  16. staring at the DOS prompt.
  17.  
  18.  
  19. OPTION 2:
  20.  
  21. Use a single batch file to run all the software for all the icons in a
  22. menu.  This option is less wasteful of disk space.  The provided example
  23. menu, DEMO.MNU, illustrates this approach.  In the example, RUN.BAT
  24. executes all commands.  Each icon in DEMO.MNU calls RUN.BAT and passes a
  25. parameter.  RUN.BAT uses the parameter to decide which set of commands
  26. need to be executed.  See DEMO.MNU, RUN.BAT and RUN.DOC for examples and
  27. further info.  As it's final act, the batch file must return to the
  28. IconDOS directory, restart IconDOS and re-load your menu.  Otherwise,
  29. you will be left staring at the DOS prompt.
  30.  
  31.  
  32. The Golden Rule
  33.  
  34. However you choose to structure your batch file(s) to run your software,
  35. the final step in the batch file(s) must be to return to the directory
  36. where IconDOS is installed, restart IconDOS and reload your menu.  This
  37. is the Golden Rule for configuring IconDOS batch files.
  38.  
  39. IconDOS does not execute your batch file, DOS does.  When the user
  40. clicks an icon, IconDOS merely passes the icon's command string to DOS.
  41. IconDOS then ends and DOS picks up the command and executes it just as
  42. if had been manually typed from the keyboard.  IconDOS is dead and
  43. completely gone from your computer's memory at this point. This method
  44. of operation eliminates any possibility of interrupt conflicts that can
  45. sometimes occur with menu systems which remain in memory as a TSR.  At
  46. the same time, it also guarantees that all DOS memory will be available
  47. to your application software.
  48.  
  49. The only drawback to the IconDOS modus operandi is that either you or
  50. your batch file must restart IconDOS each time after all other tasks
  51. have beem completed.  This is a small price to pay for the guarantee
  52. that your software will always work the same as if you were to manually
  53. run it from the DOS command line.  In our opinion, this is the best
  54. possible way for a DOS menu system to operate.
  55.  
  56.  
  57. Batch File Tips
  58.  
  59. DOS and the lowly DOS batch language are capable of much more than most
  60. people realize.  For those interested in learning more about batch file
  61. programming, I recommend a book titled "Supercharging MS DOS" by Van
  62. Wolverton, published by MicroSoft Press.
  63.  
  64. One such unusual capability is dialing the phone.  If you have a Hayes
  65. compatible modem installed, it is faily simple to use it to dial
  66. grandma's house.  Simply create a batch file called GRANDMA.BAT which
  67. contains the following line:
  68.  
  69. echo ATDT 9338910>COM1
  70.  
  71. Of course you must substitute Grandma's number instead of 9338910 and
  72. you must substitute your modem's port if it is not COM1.  Be sure to
  73. pick up the phone receiver that is attached to your modem once the modem
  74. starts dialing.  Otherwise, most modems will hang up the line after it
  75. has finished dialing the number.
  76.  
  77. Once you can create a batch file to dial one number, it is fairly simple
  78. to create a batch file phone book which can dial a whole list of
  79. numbers.  Taking it one step further, it is also fairly easy to set up
  80. an IconDOS icon to execute this batch file and dial any specific number,
  81. all with the click of a mouse button.
  82.  
  83.