OnExit: Difference between revisions

From OS2World.Com Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
OnExit.exe lets you specify a program to run (.cmd or .exe file) when Shutdown is selected from Desktop Manager (OS/2 1.x) or the WPS (OS/2 2.0).


==Description==
Usage:
 
OnExit.exe lets you specify a program to run (.cmd or .exe file) when Shutdown is selected from Desktop Manager (OS/2 1.x) or the WPS ( OS/2 2.0).
 
Usage:  
  start onexit PgmName arguments
  start onexit PgmName arguments
where PgmName is an .exe or .cmd file name.
where PgmName is an .exe or .cmd file name.
Line 12: Line 9:
Example entry in startup.cmd:
Example entry in startup.cmd:
  START ONEXIT SHUTDOWN.CMD ARG1 ARG2
  START ONEXIT SHUTDOWN.CMD ARG1 ARG2
==Download==
* [http://hobbes.nmsu.edu/h-search.php?key=onexit.zip Original Version]


==License==
==License==
* Public Domain Binaries.
* Public Domain Binaries.
 
*Author: [[Rick Fishman]]
==Author==
* [[Rick Fishman]]


==Links==
==Links==
* [http://hobbes.nmsu.edu/h-search.php?key=onexit.zip Original Version]


[[Category:Software]]
[[Category:Software]]

Revision as of 04:03, 27 December 2017

OnExit.exe lets you specify a program to run (.cmd or .exe file) when Shutdown is selected from Desktop Manager (OS/2 1.x) or the WPS (OS/2 2.0).

Usage:

start onexit PgmName arguments

where PgmName is an .exe or .cmd file name.

Run it from your startup.cmd (use the 'start' command so your startup.cmd can complete). Multiple copies can be run.

Example entry in startup.cmd:

START ONEXIT SHUTDOWN.CMD ARG1 ARG2

License

Links