• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

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
0
jamiguel
Asked:
jamiguel
1 Solution
 
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
 
gallagheCommented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now