home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 967 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1013 b   |  27 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!decwrl!csus.edu!netcomsv!mork!jfh
  3. From: jfh@netcom.com (Jack Hamilton)
  4. Subject: Capturing DOS output?
  5. Message-ID: <rcgmm3l.jfh@netcom.com>
  6. Date: Thu, 23 Jul 92 04:40:51 GMT
  7. Organization: Netcom - Online Communication Services (408 241-9760 guest)
  8. Lines: 17
  9.  
  10. I'd like to run a DOS application from inside a Windows application, and
  11. have the output from the DOS program appear in a window controlled by my
  12. Windows program.
  13.  
  14. I looked at WinExec, but there's nothing obvious in the documentation.  Is
  15. there some other way to do it?
  16.  
  17. By the way, I'd like the window to scroll as the DOS program creates more
  18. output (which will be to stdout), so redirecting the output to a file and
  19. then displaying the file won't do what I want. 
  20.  
  21. While I'm asking for the impossible, can I capture stderr separately? 
  22.  
  23. -- 
  24.  
  25. -----------------------------------------------------------------------
  26. Jack Hamilton   jfh@netcom.com   P. O. Box 281107   SF, CA   94128-1107
  27.