home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
winutil
/
utl106
/
exitw.doc
< prev
next >
Wrap
Text File
|
1991-02-05
|
5KB
|
174 lines
ExitW Copyright (c) 1990, 1991 Dragons Eye Software
Last Updated: 02/05/91 Version 2.2
----------------------------------------------------------------------------
If you have any questions or comments please contact Dragons Eye
Software at the following address and phone number:
Dragons Eye Software
P.O. Box 200262
Arlington, TX 76006-0262
(817) 265-5619 8am to 10pm CDT 7 days a week
Compuserve: 76057,101
----------------------------------------------------------------------------
ExitW includes the following features:
o ExitW can display a message before exiting to DOS that has both an Ok
and Cancel button so the user can cancel or continue the exit process.
o Using ExitW, the user can pass back an errorlevel code to DOS.
o The user can also set a specific DOS environment string.
A new program called EXITWDOS.EXE is used to parse the parameters
that are included on the ExitW command line, once control is
returned to DOS. Either an errorlevel code or environment strings
may be set using the unique combination of ExitW and ExitWDOS.
----------------------------------------------------------------------------
Command line parameters for EXITW.EXE:
The following command line parameters should be used when running ExitW:
Execute ExitW as: exitw <command> <command> <command> ...
(several commands may be specified on the same ExitW command line).
Each command should be preceeded by a dash "-" character.
M <message>
where <message> is a string contained within quotes that you want
displayed to the user before exiting windows.
The Messagebox that will be displayed to the user will have
both Cancel and Ok buttons. If the user presses Cancel, then
ExitW will NOT shut down Windows.
Note that quotes are required for the message text to be displayed
properly. Example: EXITW -M "Now running Autocad - Click on Cancel
to abort"
Quotes are required so that the command line dashes may be included
in the message text.
E <num>
Where <num> is the errorlevel number that should be returned to DOS
when the program EXITWDOS.EXE is executed. This number should fall
between 1 and 200 (an errorlevel code of 200 is used by EXITWDOS to
indicate a data file error).
Example: EXITW -E 10
S <string>
where string is an environment variable string that should be added
to or changed within the set of current MS-DOS environment settings.
An example would be: EXITW -S PATH=C:\;C:\DOS
so that when you run EXITWDOS.EXE, it would set your path to equal
C:\;C:\DOS.
*** If no parameters are given on the ExitW command line then ExitW
will not create a data file. It will merely cause Windows to exit
to DOS.
----------------------------------------------------------------------------
WIN.INI entry for EXITW.EXE
The following two lines should be present in the WIN.INI file for ExitW
to operate properly:
[ExitW]
Filename=<path>
where <path> is a full pathname a file where ExitW will store the commmand
line parameters. (EG. Filename=C:\WINDOWS\EXITW.DAT).
If this entry is not found, then ExitW will save the parameters to a file
called EXITW.DAT in the root directory of the current drive.
A file: EXITW.INI is included that contains the parameters so that
you may use your favorite text editor to copy them to the WIN.INI
file.
----------------------------------------------------------------------------
Running Example:
Calling ExitW with the following command line:
EXITW -M "Exiting Windows" -S PATH=C:\ -E 10
Would cause ExitW to write to disk the options:
-S PATH=C:\
-E 10
When EXITWDOS is executed, it will parse the data file created by
EXITW and change the path to equal "C:\" and will return and errorlevel
code of 10.
***** IMPORTANT *****
When executing EXITWDOS, you MUST specify the location and name of the file
created by EXITW. Without this specification, EXITWDOS will not know where
to find the file.
For example:
EXITWDOS C:\WINDOWS\EXITW.DAT
will cause EXITWDOS to look in the directory \WINDOWS on drive C: for the file
EXITW.DAT. If this file exists, EXITWDOS will parse the file and return the
information contained within it.
Revision History
----------------
Version 2.2 - 02/05/91
Streamlined for faster loading and a smaller .EXE
Version 2.1 - 01/27/91
Added a cancel button to the MessageBox and fixed the bug where
ExitWDos was adding a space to the end of the environment variables.
Also changed the code so that dashes "-" may be used within messagebox
strings.
Version 2.0 - 01/13/91
ExitW has been expanded to allow the user to: display a message before
exiting to DOS, to set the specific errorlevel code that should be
passed back and to set a specific environment string.
Version 1.0 - 06/20/90
Released