i need capture MSDOS messages

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
jamiguelAsked:
Who is Participating?
 
gallagheConnect With a Mentor Commented:
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
 
kjtengCommented:
Why don't use try...except or try...finally to capture the exception?
0
 
dwwangCommented:
Only 6 points? ^_^
0
 
jamiguelAuthor Commented:
Adjusted points to 10
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.