Solved

i need capture MSDOS messages

Posted on 1998-12-07
4
173 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE2 application frozen on Windows 10 10 312
Working with hours 3 58
update joined tables 2 46
Slow Restore if incremental backups using RDiff.exe 4 21
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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