> I'm sure this is a FAQ, but is there a mechanism to allow a windows
> program to be started from a Dos shell? I'm sure this is a FAQ. I
> ran into something called WRUN, but that only seems to work if you
> have a another (large) program running under windows
> I have a Windows program which I'd like to have run from a Makefile.
> Unfortunately the program uses a lib which requires a Windows executable.
This comes up occasionally, so here's one solution. But, you need to have
the MSC 7.x compiler tools. Since C7 needs to run various windows apps from
the PWB (a dos program), they supplied three programs that accomplish the
task. You need to get these files from the C7 distribution:
WXSRVR.EXE, WX.EXE, and VMB.386
Put VMB.386 in the systems dir, and add a line to the system.ini [386enh]
section like "device=vmb.386". Then, put WXSRVR.EXE in your windows
startup group. Put WX.EXE somewhere on your dos PATH so commands can find
it. You can find out the WX options by running wx with /? parameter.
To launch a windows program from a dos box, use something like:
WX /n /a /w winhelp
which will run the windows help program. I use MKS toolkit or DOSKEY to
set up some aliases so I can just type windows commands and have them
run. For example, some mks aliases are:
winhelp="wx /n /a /w winhelp"
winword="wx /n /a /w winword"
qpw="wx /n /a /w c:/qpw/qpw.exe"
notepad="wx /n /a /w notepad"
write="wx /n /a /w write"
Similar doskey macros can be written.
WXSRVR seems to launch Freecell (a win32s program) as well, so it does give
a general purpose launch vehicle. I still use the WX* stuff under MSVC++,
so it appears they haven't trashed the capability. I understand that Chicago
will work like NT, allowing you to launch any type of program from the DOS
command line.
--
Aspen Technology Group UUCP: {uunet}!csn!atglab!jls
PO Box 673, Ft. Collins, CO 80522 Voice: (303) 484-1488
Splitting up a newsgroup is like gun control -- many people hope it will
solve problems, even when the empirical data clearly shows otherwise.