home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 384.lha / DiskStart_v1.0 / DiskStart.doc < prev    next >
Encoding:
Text File  |  1990-05-30  |  3.0 KB  |  119 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                  D I S K S T A R T
  9.  
  10.                     Version 1.00
  11.  
  12.                      by
  13.  
  14.                 John Bolton
  15.  
  16.  
  17. INTRODUCTION
  18.  
  19.      I thought it would be great if I could put a disk into a drive and
  20. automatically  it  would  run  the  software on that disk.  I put in my
  21. editor disk and the editor starts up automatically, or I put in my term
  22. program disk and the term program starts up all by itself.  That is
  23. what this program does for you.
  24.  
  25.  
  26. OVERVIEW
  27.  
  28.      To use this program you must first run it in the background from a
  29. CLI.  I put it in my startup sequence.  Each disk that you want to start
  30. up automatically must have a TOOLTYPES entry telling DiskStart the name
  31. of a script file to run.  When you insert the disk, the script file is
  32. automatically executed.  You must also have C:Run.
  33.  
  34.  
  35. THE TOOLTYPES ENTRY
  36.  
  37.      The TOOLTYPES entry is modified by selecting the disk's icon and
  38. using the Info menu item in the Workbench menu.  The entry should be
  39.  
  40.             Insert-Sequence=<filename>
  41.  
  42. where <filename> is the name of the script file.  It is important to
  43. give an absolute path complete with a volume name.  "Insert-Sequence" is
  44. case-sensitive.  A few examples:
  45.  
  46.             Insert-sequence=Access!:load-Access!
  47.             Insert-sequence=Pictures:s/start-showiz
  48.             Insert-sequence=RAM:run-demo
  49.  
  50.      A couple of points should be made.  Any output from the script file
  51. is directed to the window that DiskStart was run.  Because of the way
  52. AmigaDOS works, Alias, Path, and Assign are in effect only until the
  53. script is finished.  To circumvent this, use two script files.  The
  54. first is run by DiskStart and contains only a NewCLI command.  The
  55. second is executed by the NewCLI command.  For example:
  56.  
  57. TOOLTYPES entry:
  58.  
  59.         Insert-Sequence=Manx-3.6:load-manx
  60.  
  61. Contents of Manx-3.6:load-manx:
  62.  
  63.         NewCLI From Manx-3.6:manx-cli-startup
  64.  
  65. Contents of Manx-3.6:manx-cli-startup:
  66.  
  67.  
  68.         if NOT EXISTS vd0:t/Manx-Flag
  69.             echo "Loading Manx-C..."
  70.             copy Manx-3.6:bin vd0:bin all quiet
  71.             copy Manx-3.6:include vd0:include all quiet
  72.             copy Manx-3.6:lib vd0:lib all quiet
  73.             echo > vd0:t/Manx-Flag "Manx-Flag*N"
  74.         endif
  75.  
  76.         path vd0:bin add
  77.  
  78.         set INCLUDE=vd0:include
  79.         set CLIB=vd0:lib
  80.         set TMP=ram:
  81.         set CCTEMP=ram:
  82.  
  83.         echo "Manx C loaded..."
  84.  
  85.  
  86. THE DISKSTART WINDOW
  87.  
  88.      DiskStart creates a small window when it runs.  This window cannot
  89. be sized.  To kill DiskStart, use the Close gadget. 
  90.  
  91.  
  92. UPCOMIMG ENHANCEMENTS
  93.  
  94.      1. Execute a script when a disk is removed.
  95.      2. Disable DiskStart temporarily.
  96.      3. Enable/Disable DiskStart for specific drives.
  97.      4. Supply arguments, such as drive number, to executing script.
  98.      5. Execute a script once no matter how many times the disk is
  99.         inserted.
  100.      6. Automatically detach from the CLI.
  101.      7. Optional requester to confirm executing script for a disk.
  102.  
  103. AND FINALLY...
  104.  
  105.      Comments, suggestions, questions, software, money, and whatever
  106. else you may wish to throw in my general direction should be sent to
  107. John Bolton,
  108.  
  109.             by BBS:
  110.  
  111.         Federation (818) 407-0419 (WWIV node 18)
  112.         1939       (818) 368-4248
  113.  
  114.  
  115.             by Snail Mail:
  116.  
  117.         8221 Mason Ave. #C
  118.         Canoga Park, CA 91306
  119.