
DOAUTO2.PRG  Version 2.0
-----------

(Is DOAUTO2 useful under MagiC? If it is, I'd like to hear from you;
 I cannot test it because I don't have MagiC..)

One more boot selector for the owner of hard discs (user having only
a disc drive should forget about these tools).
Because there are gigabytes full of boot selectors on the servers,
here comes mine, too; here is some "motivation" for it..

* a very short program - no long loading time even for slow hard discs
* you can choose between about 30 different boot configurations
  (press key 1..9,A..Z during the boot-up)
* programs can be executed that are located outside of the AUTO folder
* the position of the programs in the boot process is determined by the
  batch file, not by the physical position inside of the AUTO folder
* DOAUTO2 uses only about 2kB + size of the batch file
* computers with lots of memory get faster during the boot-up if you
  let DOAUTO2 reduce the amount of free memory
* if SHIFT, CONTROL or ALT is pressed, DOAUTO2 will ask you for every
  execution if it executes the program or not, won't ask again or terminates.
* you can pass parameters to the programs (<=125 chars)
* DOAUTO2 is freeware, you may spread it to everyone; but only in the
  original state, that means: All files, and no modifications on the files.
  You are not allowed to sell DOAUTO2 without having a permission from me.


the files:
DOAUTO2.PRG  - the main program
PRGS.DO1     - a example boot-up file
ED_E.PRG     - a (spartanic) editor (get help with the HELP key)
LIESMICH.TXT - German readme file
README.TXT   - this try to speak Englisch..
CHG_D.PRG    - a program to change the ACC boot drive    !DANGER!
CPY.TTP      - little 1-file-copy-program                !DANGER!


So, somebody still reading this text? Well, let's continue now with
the description of the installation.

1. Installation
   copy DOAUTO2.PRG into your AUTO folder.
   All other files with the suffix "PRG" should now be renamed to
   "PRZ" or somewhat similar.
   Now create a text file (if you don't have an editor, use ED_E.PRG)
   in the main directory (C:\) or in the AUTO folder (C:\AUTO),
   name: PRGS.DO1
   Using ED_E.PRG, you have to: Start ED_E.PRG, type in your text (see below),
   press CTRL-S (a file selector appears), change to "C:\" (click on the
   line containing the actual path, press Escape and type "C:\*.*"+Enter)
   type in the name "PRGS.DO1" and click OK.

   the text should be organized as follows:

# comment           (only for the "programmer" of the batch file)
> hello world       (that text will be displayed during the boot-up)
~2                  (allocate memory, leave 2MB during the boot-up)
~-                  (de-allocate the memory)
?C:\AUTO\CRASH.PRG  (ask for execution of CRASH.PRG)
C:\HD\CACHE.PRG     (execute C:\HD\CACHE.PRG, as if it was in the AUTO folder)
C:\OLDTOS\SID.TTP C:\AUTO\TEST.PRG  (an example WITH PARAMETERS)


DOAUTO looks for a key at its start (but doesn't wait for it).
If the key is in the range 1..9,A..Z then it will read the boot-up file
PRGS.DO<key>
By default, the file is PRGS.DO1, but if you press a key, a hidden file
"C:\bootkey.txt" is created that contains the new default file.

If you wish to have different boot files and don't know how to create them,
just use ED_G.PRG, load (CTRL-O) PRGS.DO1, save it with a different name
(ALT-S), e.g. PRGS.DO2, do your changes and save it again (CTRL-S).

Note: It is wise to use letters instead of numbers 
(e.g. on my system: 1 - full boot, 2 - medium boot, 4 - "naked" Falcon,
 I - internet boot-up, M - MultiTOS boot-up, V - Vidtel inside boot-up)


ED_E.PRG
--------
A simple editor without menu and some redraw problems under MultiTOS..
It works only with one text at a time. To see the command keys, press
the HELP key.
Use it if you don't have a better one, otherwise delete it.

CHG_D.PRG
---------
This little program changes (in an "ugly" way) the path for Accessories.
It should be executed as last program in the AUTO folder, or at last
position in the batch file for DOAUTO2.
Because this program uses "dirty" tricks to change the ACC path, it
should be expected to run only under TOS versions <=4.04.
So first do a probe boot and then use it!
Syntax: CHG_D.TTP D    D=Drive(D:\), only one letter accepted.
Use CHG_D.TTP only from the AUTO folder!!!!

CPY.TTP
-------
A little copy program that you could use e.g. to choose between different
NEWDESK.INF/DESKTOP.INF or MINT.CNF files (e.g. MINT.CNF for MultiTOS and 
for XaAES).
Syntax: CPY.TTP <source> <destination>
<source> and <destination> have to be full file names without wildcards!
E.G.: CPY.TTP NEWDESK.16 NEWDESK.INF
! CPY.TTP does NOT tell anything when <destination> will be overwritten !


***  Attention: You cannot execute programs that use GEM! The programs
***             will be executed before GEM is initialized (as usual,
***             when programs are executed in the AUTO folder..)

*** Warning: The use of DOAUTO2.PRG is totally your risk,
***          I won't be responsible for any damage caused by DOAUTO2.PRG!
***          On my Falcon/14MB DOAUTO2.PRG runs since 6 months but
***          I cannot exclude the possibility that DOAUTO2 contains
***          some bugs.

I you still don't know how such a batch file is created, look at the
"PRGS.DO1" file in this directory..


The programs were written using Assembler, ED_E using PureC.
That should explain why the program size is so small..

Have fun with DOAUTO2,

Christian Peppermller
(Christian.Peppermueller@rzmail.uni-erlangen.de)
Ebrardstr. 23
91054 Erlangen
Germany
