Solved

Executing a DOS program

Posted on 1998-04-02
4
167 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 50 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
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…

717 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