Re: system() function
- Posted by Kat <KSMiTH at PELL.NET> Dec 18, 1999
- 478 views
----- Original Message ----- From: Brian Broker <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Saturday, December 18, 1999 4:14 AM Subject: Re: system() function > Thank you Robert and Kat for your suggestions but perhaps I should be more > specific. I would like to write a Windows GUI for a DOS command-line > program. Writing to, and reading from a file seems rather inefficient in > this case. Is there an easy way to redirect the output from the console to > my GUI without going via disk or user intervention (like manually copying > from the console window)? Perhaps by directing the output to the clipboard > where I can easily grab it or maybe even more direct by just copying info > from the console? > > Has anybody done something like this before? Oh, yeas,, your windoze Eu code can have a Win95 gui window open using win32lib calls, and a dos window open using Eu's dos commands like print() or puts(), i was doing this last nite. The windoze window gave me connection status while the dos window printed other things for debugging. I was too lazy to use the win32lib call when puts() did the job i needed. Kat