?
Solved

Executing a DOS program

Posted on 1998-04-02
4
Medium Priority
?
170 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
[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 1

Expert Comment

by:Greedy
ID: 1361255
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 100 total points
ID: 1361256
use ExecuteProg(Commandline : string)

Satto
0
 
LVL 1

Author Comment

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

Expert Comment

by:itamar
ID: 1361258
Hi mortenmo,

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

Bye,
Itamar
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month13 days, left to enroll

777 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