DOSBOX Windows CoMmanD
----------------------

Occationally I want to run a command on my Win64 HOST system from within
DOSBOX.  I have not found any built in DOSBOX method for executing host
commands, so I created WCMD and DBWCMD.

WCMD.COM is a simple DOS program which executes native commands on the Windows
host system via ...

DBWCMD.EXE is a Windows program which sits and waits for commands from WCMD
and runs them.

These two programs communicate through temporary files.
I use my R: ramdrive for these.

WCMD uses the location specified in the TEMP environment variable.
If TEMP is not set, it assumes "R:\".

DBWCMD can be passed the temporary storage location as a command argument,
if not given, it assumes it is running within in the DOSBOX home directory,
and reads DOSBOX.INI to look for the location which is MOUNTed as drive R.

You can set up a Windows shortcut to easily run DBWCMD with arguments you
wish, and within any directory you wish.

Getting information back to the DOSBOX program using WCMD can be done via
redirecting output to temporary files. For example, I often use WCMD to run
LCCWIN32 to compile a Windows program from within DOSBOX.  My build process
copies 'program.C' to R:\ and makes the following LCC.BAT file which is run
via WCMD:  (my DOSBOX.INI contains 'mount R R:\' to make R: common to both)
    @ECHO OFF
    R:
    CD \
    C:\LCC\BIN\LC -e5 -nw program.C -s 2>LCC.ERR
    TYPE LCC.ERR
When WCMD returns it then reads R:\LCC.ERR to get the stderr output from the
LC command!

Use: WCMD ?
to get details on the command options to WCMD.COM.
DBWCMD.EXE accepts only the temporary storage location as a command option.

Dave Dunfield   -   https://dunfield.themindfactory.com
