Running a DOS program and closing its window after running it
When you run a DOS program in Windows95, its window remains open until
closed by the user. To run a Dos program that closes its windows after
running, you must specify "command.com /c program" in the
command line. Using WinExec API function to run a program named progdos.exe,
the call should be:
WinExec("command.com /c progdos.exe",sw_ShowNormal);
If you wish that the program is run hidden from the user, the second
parameter must be sw_Hide. You must specify the .com extension, or the program will not run.

0 Comments:
Post a Comment
<< Home