Solved

Executing a DOS program

Posted on 1998-04-02
4
154 Views
Last Modified: 2010-04-06
I want to execute a dos program in the background and get the output it send (not wait for it to finish).
I don't wanna sit down and use CreateProc either.. Anyone know an easier way in Delphi 3.0?
0
Comment
Question by:mortenmo
4 Comments
 
LVL 1

Expert Comment

by:Greedy
Comment Utility
use this

ShellExecute( 0, 'open'+#0, Pchar('YOURFILE'), nil, nil, SW_NORMAL );

oh you want the output too...hummm...that requires some more jooking...I'll see what I can do...

0
 

Accepted Solution

by:
satto earned 50 total points
Comment Utility
use ExecuteProg(Commandline : string)

Satto
0
 
LVL 1

Author Comment

by:mortenmo
Comment Utility
Well I want the output from it too.. and not open a console window ;)
0
 
LVL 4

Expert Comment

by:itamar
Comment Utility
Hi mortenmo,

I have some ideas. If you re-open the question, I could try.

Bye,
Itamar
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

11 Experts available now in Live!

Get 1:1 Help Now