home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
- D I S K S T A R T
-
- Version 1.00
-
- by
-
- John Bolton
-
-
- INTRODUCTION
-
- I thought it would be great if I could put a disk into a drive and
- automatically it would run the software on that disk. I put in my
- editor disk and the editor starts up automatically, or I put in my term
- program disk and the term program starts up all by itself. That is
- what this program does for you.
-
-
- OVERVIEW
-
- To use this program you must first run it in the background from a
- CLI. I put it in my startup sequence. Each disk that you want to start
- up automatically must have a TOOLTYPES entry telling DiskStart the name
- of a script file to run. When you insert the disk, the script file is
- automatically executed. You must also have C:Run.
-
-
- THE TOOLTYPES ENTRY
-
- The TOOLTYPES entry is modified by selecting the disk's icon and
- using the Info menu item in the Workbench menu. The entry should be
-
- Insert-Sequence=<filename>
-
- where <filename> is the name of the script file. It is important to
- give an absolute path complete with a volume name. "Insert-Sequence" is
- case-sensitive. A few examples:
-
- Insert-sequence=Access!:load-Access!
- Insert-sequence=Pictures:s/start-showiz
- Insert-sequence=RAM:run-demo
-
- A couple of points should be made. Any output from the script file
- is directed to the window that DiskStart was run. Because of the way
- AmigaDOS works, Alias, Path, and Assign are in effect only until the
- script is finished. To circumvent this, use two script files. The
- first is run by DiskStart and contains only a NewCLI command. The
- second is executed by the NewCLI command. For example:
-
- TOOLTYPES entry:
-
- Insert-Sequence=Manx-3.6:load-manx
-
- Contents of Manx-3.6:load-manx:
-
- NewCLI From Manx-3.6:manx-cli-startup
-
- Contents of Manx-3.6:manx-cli-startup:
-
-
- if NOT EXISTS vd0:t/Manx-Flag
- echo "Loading Manx-C..."
- copy Manx-3.6:bin vd0:bin all quiet
- copy Manx-3.6:include vd0:include all quiet
- copy Manx-3.6:lib vd0:lib all quiet
- echo > vd0:t/Manx-Flag "Manx-Flag*N"
- endif
-
- path vd0:bin add
-
- set INCLUDE=vd0:include
- set CLIB=vd0:lib
- set TMP=ram:
- set CCTEMP=ram:
-
- echo "Manx C loaded..."
-
-
- THE DISKSTART WINDOW
-
- DiskStart creates a small window when it runs. This window cannot
- be sized. To kill DiskStart, use the Close gadget.
-
-
- UPCOMIMG ENHANCEMENTS
-
- 1. Execute a script when a disk is removed.
- 2. Disable DiskStart temporarily.
- 3. Enable/Disable DiskStart for specific drives.
- 4. Supply arguments, such as drive number, to executing script.
- 5. Execute a script once no matter how many times the disk is
- inserted.
- 6. Automatically detach from the CLI.
- 7. Optional requester to confirm executing script for a disk.
-
- AND FINALLY...
-
- Comments, suggestions, questions, software, money, and whatever
- else you may wish to throw in my general direction should be sent to
- John Bolton,
-
- by BBS:
-
- Federation (818) 407-0419 (WWIV node 18)
- 1939 (818) 368-4248
-
-
- by Snail Mail:
-
- 8221 Mason Ave. #C
- Canoga Park, CA 91306
-