Solved

i need capture MSDOS messages

Posted on 1998-12-07
4
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 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