************************************************
USE THIS PROGRAM AT YOUR OWN RISK!
THE AUTHOR MAY NOT BE RESPONSIBLE FOR ANY DAMAGE
CAUSED BY USING THIS PROGRAM!
************************************************

AutoRun (test release 10)
-------

This program is written to run autostarting Program and Audio CDs under
Windows OSes. Just put a shortcut onto your desktop, and then you can AutoRun
your disks whenever you want to do so!
This program can be useful, if:
-You must disable 'CD Autorun' feature of Windows for some reason,
-You don't want to eject and close your CD drive's door to perform an AutoRun,
-You don't want to search, which is the file executed during AutoRun process,
-You want to test your AutoRun.inf file, before creating your own AutoRun CD,
-You want to AutoRun something (CDs, programs, etc.) at Windows startup,
-You want to AutoRun more then one disk at the same time...

How to install? Just copy the executable into a directory of your choice.
How to uninstall? Just delete the executable, batch and ini files.

How to setup? (for the first time)
1. Copy the executable into a directory (folder) of your choice.
2. Create a shortcut on your desktop/start menu/quick launch bar.
3. Right-click on the shortcut, choose Properties, and make the following
   settings:
   - Change icon to a nice one (not important).
   - Choose the Program tab, and set 'Close, when finished' (not important).
   - Choose minimized mode (not important).
   - Choose Memory tab and disable the 'Protected' switch (can be important!)
   - Click 'OK' to save the above settings.
4. Double click to start the program for the first time.
5. When the program can't find its .ini file (for example, at first start),
   it creates one (default).

Now, the program is installed and configured, you are ready to use it!!
How to use?
Simply double click on the icon, you just created! The program will use the
.ini file to determine, which drives will it AutoRun. The default .ini file
tells the program, to try to AutoRun all drives (from C: to Z:). This means,
it will find your CD-ROMs automatically. This is useful, if you install and
remove hard disks (in mobile rack) or other devices, and they change your
drive letter assignments all the time.

If you want to customize the operation of the program, you have to edit the
.ini file with a text editor (notepad, for example).
The ini file is very simple: each row contains one directory to search for an
autorun.inf. To enter a path, always use short MS-DOS filenames!
The order of entries determines the order of searching of AutoRun.inf files.
You can tell the program, which drives (or directories) to search, and in
which order.

Examples:
1. Let's say, you want to run the disk in drive E. The Autorun.ini file should
   look like this:

   E:\

   (This will tell the program to search only the root directory of drive E:)

2. If you want to run the disk R, then disk F:, then the directory
   C:\Program Files\TEMP\, the ini file should look like this:

   R:\
   F:\
   C:\PROGRA~1\TEMP\

   (This will tell the program to search drive R: root directory, then drive
    F: root directory, then in the C:\Program Files\TEMP\ directory for an
    AutoRun.inf)

If you want to restore the .ini file, you can simply delete it, then the
program will create one again.

When two or more AutoRun.inf files or AudioCDs found, program will execute
each one.
The execution of the program will also create a batch file (Autorun.bat). This
is used to perform the AutoRun. (This file can be deleted after the AutoRun
was succesful.) When no AutoRun.inf or AudioCD found, the program will not
perform any operation (except the creation of the .ini and .bat files.)

Other parameters/switches:
You can enter one or more of the followings in the .ini file (the case is
not important):
FIRST     - instructs the program to run only the first found autorun.inf or
            AudioCD, then stop.
CLEANUP   - instructs the program to delete the .bat file after execution.
            (For those, who think it wastes only space...)
NOAUDIO   - instructs the program, to not search for AudioCDs.
AUDIO     - instructs the program, to continue searching of AudioCDs.
;         - lines starting with semicolon are just skipped, this is used
            to create comments.

I must explain, what does AUDIO and NOADUIO do. The ini file processed in
sequence: each line after each line. When the program finds, a line contains
NOAUDIO, then it turns off the searching for AudioCDs. This remains turned
off, until it finds a line containing the switch AUDIO, which turns it on
again. This way, you can include or exclude drives from the Audio search.
For more infos, see the sample Autorun.ini!

Limitations: (this list is shorter in every release... :)
- AudioCD will play the the first track of the AudioCD. The rest of the tracks
  should be played by the assigned AudioCD player program (by default, Windows
  assigns the Cdplayer.exe to AudioCDs, and that plays the whole disk.) But if
  you assign Winamp as a cdplayer, it will only play the first track.
- When two ore more AutoRuns performed at the same time, conflicts may occur
  between the two started programs. When the started programs want to use the
  same directory (for example, C:\Windows\TEMP) to copy files, same named
  files (for example, Setup.exe) may overwrite each other. This can make
  unpredictable errors, data losses, etc. Usually setup programs are
  "dangerous". If possible, don't try to AutoRun two CDs together! Do so only
  at your own risk!
- All .ini file entries must start with drive letter (C:, D:, E:, etc.) Always
  use absoulte path! (Naturally, with the exception of the switches.)
- Maybe can't AutoRun disks, when the auto-running program (defined in the
  CD's AutoRun.inf file) has a long filename, containing spaces (" "), or
  additional command line parameters. (Sorry, but I didn't find any info
  on M$ websites.)

The program is written in Borland Pascal 7, packed with UPX v1.20d (Ultimate
Packer for eXecutables). Source is available for e-mail request.
Freely distributable, modifications are allowed (please, send a copy with
source!)
Istvan Ago has sent me his own ideas (AudioCD support) and he rewrote the
source, and helped me a lot. Many thanks!

All rights reserved!

Original idea:Kovari Janos / bsh@freemail.hu / http://people.freenet.de/_bsh
With help of : Ago Istvan / istvan@adanet.co.yu
