DEMONSTRATION OF SPAWN & GRAPHICS SAVE FUNCTIONS
(c) 1990 by Microsystems Software, Inc.
Author: Ratko V. Tomic
MSI Voice phone: (508) 626-8511
MSI friendly BBS: (508) 875-8009 (2400,N,8,1)
(508) 626-2481 (HST 9600/14400,N,8,1)
TST is little TSR demo for CodeRunneR's PDK-3 capabilities. It allows
you to run programs or COMMAND.COM while inside other applications,
including those using graphics, mouse and coprocessor. Since TST
saves forground application, it is best to run it from RAM disk,
or to have LIM available. In case of LIM you get additional benefit
of TSR size of only 1.5K of RAM. If you have HIGH-LOAD type utilities
(like 386MAX) you can load TST into High Memory and use 0K low memory
footprint and take up only 1.5K of high memory - the rest of TST is
in EMS memory !
NOTE: TST maintains file MEM_IMG.$$$ which is used for application
swapping. The file is created at the current drive at the time
of initial loading of TST.EXE. Thus if you have RAM disk you
can improve performance by logging to RAM disk when loading
TST (TST.EXE need not be on the RAM drive). When TST /U is
invoked to unload TSR, the MEM_IMG.$$$ is deleted (provided
you are on the same drive as at load time).
**** CAUTION ****
The file MEM_IMG.$$$ should not be deleted while TST is resident.
RUNNING ANY PROGRAM
After running TST.EXE press F11 or to pop-up execution window.
On question "Program Name:" specify full path and name of the program
(including drive and COM or EXE extension).
On question "Command Line" you can enter or the command options
required by the application.
The application will be executed and upon its exit, the screen will be
retained until you hit any key. Then the original screen, preceeding
the pop-up will be restored.
RUNNING COMMAND SHELL
To shell out into COMMAND.COM press F12 or then run any
commands at the command level.
TST COMMAND LINE OPTIONS
/M nnnSet swapped memory size to nnn kilobytes. If no value is specified
TST will swap 192K, allowing for smaller applications. If the
specified amount is greater than maximum available memory (memory
following the TSR) TST will swap as much as possible. You can
also specify /M* to indicate maximum amount to be swapped.
Specify default program to be invoked when F11 is pressed.
The name must include full path and drive information, such
as /P C:\UTIL\CHKDSK.COM .
Specify default command line to be used with .
This option must be the LAST ONE to allow for arbitrary
command line syntax.
/GRun without prompting for confirmation.
Normally TST will display the program name and reqest
enter to proceeed.
/QEnable quick proogram termination. Normally TST will pause on
the exit screen of the waiting for any key
before returning to the interrupted application.
/EDon't use EMS for swapping or for the TSR itself. This may be
needed with some applications which use EMS in TSR unfriendly
manner (e.g. with EMSNET).
/XDon't use XMS for swapping.
/H Don't check high memory when searching for already loaded TST.
This switch should be used with machines which don't allow
reading of memory beyond video RAM (some faulty 386 multitaskers
or some rare adapters). You should try /H if the computer locks
up while loading TST.
/UUnload TST from memory. This option will work if no other
TSR has been loaded after TST.
SAMPLE FOR SPAWN-IN-PLACE
This is a simpler program TS2.EXE which demonstrates use of spawn_in()
function. The source files are TS2*.C and the BAT file is DO2.BAT.