home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
DESQVIEW
/
DVRUN.ZIP
/
DVRUN.DOC
< prev
Wrap
Text File
|
1989-03-02
|
2KB
|
46 lines
DVRUN.BIN
Copyright (C) 1989 George A. Stanislav
All rights reserved
This is a simple utility to let you open DESQview windows from a batch file.
The program in itself is "incomplete" - you have to create your own program
which you can run from a batch file.
To create such a program is easy - first install any program you want to run
in DESQview, using DESQview's Append Program option. Assuming you will want
the program run without your intervention, you will probably say YES to the
Close on Exit question. Alernately, you may want to say NO, install a batch
file whose last line says EXIT.
Having done that, you will find a .DVP file in your DESQview directory. The
filename will consist of the two characters you use to call the program from
DESQview menu, a dash, and PIF.DVP.
For example if you install Opus' oMMM program and tell DESQview to run it
when you choose OM, the filename will be OM-PIF.DVP.
Now, copy DVRUN.BIN and the .DVP file to a .COM file which you will call from
your batch files. Note the DVRUN.BIN must be the first, the .DVP file second.
You also need to use the /B flag of COPY command.
Following the above example, you may want to create OM.COM like this:
COPY /B DVRUN.BIN + OM-PIF.DVP OM.COM
Now place OM.COM on the PATH of your system. Whenever you run a batch file
which contains the line:
OM
DESQview will open a window and run oMMM in it while continuing the calling
batch file processing and running the next program in the batch file.
This will work ONLY with the NEW .DVP files introduced with DESQview 2. You
will know you have the correct .DVP file if its size is 416 bytes.
Note: If you try to run the program outside of DESQview, it will tell you
DESQview is not loaded and exit with the errorlevel 1. In DESQview it will
open the window and exit with the errorlevel 0.