***********************************************************
* Name:         Simple Shutdown                           *
* Version:      1.0                                       *
* Registration: Free                                      *
* Company:      VERCAN                                    *
* Author:       Pablo Vera <pvz@vercan.com>               *
***********************************************************

***********************************************************
** This is a free program, it may be freelly distributed **
** as long as its contents are not changed in any form.  **
***********************************************************


I. Overview:

This utility is used to perform several tasks prior to shutting down Windows.
It works by running a script.


Available script commands are:

1. App_ID = Command line with parameters

   Description:
     Executes the application specified by the command line.  You must
     include a full path and all the required parameters separated by
     spaces.  App_ID is any comment or message that identifies the
     application.

   Examples:
     Apache Shutdown = C:\Apache\Apache.exe -d C:\Apache -k shutdown
     MySQL Shutdown  = C:\MySQL\bin\MySQLAdmin.exe -u root -pxxxxxx shutdown


2. PAUSE n prompt

   Description:
     Pauses script execution for n miliseconds.  Displays prompt message.

   Example:
     PAUSE 4000 Please wait ...


3. SHUTDOWN | RESTART | LOGOFF

   Description:
     Closes all programs and does a full shutdown, a full restart or a quick
     logoff/logon.  All commands placed after any of these three are ignored.

   Example:
     SHUTDOWN


4. ' comments

   Description:
     The " ' " symbol is used to comment out any line.  It must be placed at
     the begining of the line.


Sample script:

  |--------------------------------------------------------------------------|
  |' Let the user know:                                                      |
  |  PAUSE 1000 Shutting down in 5 seconds ...                               |
  |  PAUSE 1000 Shutting down in 4 seconds ...                               |
  |  PAUSE 1000 Shutting down in 3 seconds ...                               |
  |  PAUSE 1000 Shutting down in 2 seconds ...                               |
  |  PAUSE 1000 Shutting down in 1 second ...                                |
  |                                                                          |
  |' Shutting down servers:                                                  |
  |  Apache Shutdown = C:\Apache\Apache.exe -d C:\Apache -k shutdown         |
  |  MySQL Shutdown  = C:\MySQL\bin\MySQLAdmin.exe -u root -pxxxxxx shutdown |
  |                                                                          |
  |' Waiting for servers to shut down:                                       |
  |  PAUSE 4000 Waiting for servers ...                                      |
  |                                                                          |
  |' Restarting windows:                                                     |
  |  RESTART                                                                 |
  |--------------------------------------------------------------------------|


To execute a script you must select from the Start Menu the Run command and type:

   Shutdown scriptname

The script file must be in the same directory as Shutdown.exe and its extension
should be .vcs, otherwise, you should supply it with the scriptname:

   Shutdown scriptname.txt


It is recomended that you create several shortcuts, one for each script you need
to run, and place them on your desktop or quick launch area of the task bar (Win98).



II. Installation:

1. Uncompress and copy all files to one folder.

2. Copy Shutdown.exe to your Windows directory or any other directory on the path.
   If you create shortcuts, this step is not required.

3. Remember to place your scripts on the same directory as Shutdown.exe.



III. Requirements:

- Windows 95, 98 or NT
- Visual Basic 5.0 Runtime

