Solved

i need capture MSDOS messages

Posted on 1998-12-07
4
171 Views
Last Modified: 2010-04-04
i need capture MSDOS messages by example: i exceute a line command: winexec('dir a: ',SW_SHOWNORMAL)

then in the screen apear a message:
Abort, Retry, Ignore ?

I need Capture these message and send the answer a MSDOS, i need make transparent(or invisible) these process to user

thanks
0
Comment
Question by:jamiguel
4 Comments
 
LVL 2

Expert Comment

by:kjteng
ID: 1349768
Why don't use try...except or try...finally to capture the exception?
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1349769
Only 6 points? ^_^
0
 

Author Comment

by:jamiguel
ID: 1349770
Adjusted points to 10
0
 
LVL 2

Accepted Solution

by:
gallaghe earned 10 total points
ID: 1349771
This can't be done. If you were talking about a Windows program then you could use

CreateProcess, WaitForInputIdle, WaitForSingleObject followed by
GetExitCodeProcess(ProcessInfo.hProcess,nExitCode) ;

The problem is that GetExitCodeProcess only works with Windows applications.

Kevin S. Gallagher
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now