home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
start.zip
/
START.DOC
< prev
next >
Wrap
Text File
|
1994-11-21
|
5KB
|
163 lines
DOS VDM START - Copyright 1994 by William E. Allen [75300,272] - Team [OS/2]
SHAREWARE
DOS VDM START is SHAREWARE. It is supported on Compuserve: GO OS2SHARE. If
you find yourself using this program, please register it. Fill out
START.REG and send it with $10.00 + $1.00 S&H to: William E. Allen P.O. Box
834 Howell, Michigan 48843. (Overseas orders, please make payments in US
dollars, and include $5.00 for overseas shipping.)
WHEN YOU REGISTER you will receive a diskette containing the latest version
of DOS VDM START, and a copy of my PM WINDOW POSition utility, an OS/2
utility that lets you position and size an active DOS, OS/2 or PM window on
the screen. When used with DOS VDM START, PM WINDOW POS can be started from
a DOS BATch file so you can position and size your DOS application as you
like.
OVERVIEW
Did you ever wish you could use the OS/2 START command from a DOS VDM
session to start another program running in its own separate session? DOS
VDM START does just that.
Its uses are nearly unlimited. I use it to run EPM as my editor from
XtreeGold, to start debug sessions from the Borland Pascal IDE, or to test
a program I'm developing in BP. I use it to start many of the development
tools I use from the BP IDE tools menu. And I use START in my DOS BATch
files to start my PM WINDOW POSition program. PM WNDOW POS lets me open DOS
and OS/2 applications in exactly the position and size I want, every time,
automatically! (See the SHAREWARE section above for details about my PM
WINDOW POS utility.)
SYNTAX
START ["title"] [/B[G] /DOS[=filename] /F[G] /FS /INH /INV /K /MAX /MIN
/N /PM /POS=x,y,x1,y1 /WIN] [command ...]
LIMITATIONS
Unlike the OS/2 START command, DOS VDM START can not automatically determ-
ine the type of application. It will deafult to starting an OS/2 session.
If you want to start a DOS application you must use the /DOS parameter.
The current directory of the new session will be the ROOT of the drive
that is current when DOS VDM START is executed, NOT the directory where
the command is issued.
NOTE: The above root directory limitation appears to have been corrected
with OS/2 Warp 3.0!
PARAMETERS
"title"
The title you will see on the title bar and in the task list. Enclosed
the title in double quotes and make sure it's 60 or fewer characters. The
program name is the default title.
/B[G]
Starts the session in the background.
/DOS
Starts a DOS session in the foreground.
/DOS=filename
Starts a DOS session in the foreground using the DOS settings specified
in a simple text file that you create. Each line in your file has the
form KEYWORD=VALUE where the keywords and values are the same as those
found in the DOS Session Settings notebook. Each line should begin in
column 1 and have no extra spaces added. Here is an example that sets the
amount of DPMI memory limit to 0, the EMS memory limit to 0 and specifies
the session should be able to run in the background. Please note that you
should use 1 or 0 for settings that require a Yes or No answer.
DPMI_MEMORY_LIMIT=0
EMS_MEMORY_LIMIT=0
DOS_BACKGROUND_EXECUTION=1
DOS VDM START uses defaults for the settings you do not include in your
text file.
/F[G]
Starts a foreground session. The session will be started in the back-
ground, if you do not include /DOS, /FS, /WIN, /PM, or /FG.
/FS
Starts the session full-screen, in the foreground.
/INH
Inherits the environment variables from the SET= statements in your
CONFIG.SYS file. The default is to use the environment from the current
OS/2 session.
/INV
Invisible starts the session with no icon. It is accessible only via the
Task List.
/K
Keeps the command processor session when the command or peogram is
finished. Use the EXIT command to close the session.
/MAX
Starts the session in its maximized state.
/MIN
Starts the session in its minimized state.
/N
Starts the program directly without using a command processor. You can
not use this option for internal commands like COPY or DIR.
/PM
Starts a foreground PM session without using a command processor.
/POS x,y,x1,y1
Starts the session at the starting position x,y, and with the window size
x1,y1. Numbers are in pels. The lower left corner of the screen is 0,0.
/WIN
Starts the session in a window in the foreground.
EXAMPLES
Start an OS/2 full-screen session in the background:
start
Start a full-screen OS/2 session in the foreground:
start /fs
or
start /fg
Start a DOS VDM session in a window:
start /dos /win
Start XCOPY in a minimized background window session, with the title
"XCOPYing files...":
start "XCOPYing files..." /bg /min /win xcopy c:\*.* a:\
4B15110