home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1054 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.1 KB

  1. Path: sparky!uunet!uchdcc!vandi!pam
  2. From: pam@vandi.ars.cl (Pablo Ahumada M.)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: "Exec"ing DOS programs from Windows 
  5. Distribution: world
  6. Message-ID: <712336302snx@vandi.ars.cl>
  7. References: <MePil9_00WB4QR=2QO@andrew.cmu.edu>
  8. Organization: Ars Innovandi (El arte de innovar)
  9. Lines: 19
  10. Date: Tue, 28 Jul 1992 14:21:00 CST
  11.  
  12.  
  13.   > I need to be able to run a DOS program from my Windows program,
  14.   > without the DOS program taking over the screen.  In Borland C++ neither
  15.   > "system" nor any of the standard Unix "exec" functions are defined under
  16.   > Windows and I can't find any other functions documented in the standard
  17.   > lib docs or ObjectWindows documentation.
  18.   > What's the best way to run a program, at the very least duplicating
  19.   > the functionality of the "Run" menu option under the Program Manager?
  20.  
  21.    WinExec( "c:\myprogram.exe a b c", SW_HIDE );
  22.  
  23.    Pablo.
  24.  
  25. _______________________________________________________________
  26.  
  27.    Pablo Ahumada Mardones       uucp : pam@vandi.ars.cl
  28.                    FAX    : (56-2) 231 9756
  29.    &8-)*               Santiago, Chile
  30. _______________________________________________________________
  31.