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
Solved

Executing a DOS program

Posted on 1998-04-02
4
161 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Delphi: Connect to running MS Outlook 4 118
Delphi and Access based Enumeration 9 70
Dev express lookupcombo 3 34
How to make Sign in, using Clientdataset? 1 28
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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