Solved

i need capture MSDOS messages

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

19 Experts available now in Live!

Get 1:1 Help Now