Solved

How to call a exe from delphi program

Posted on 2002-06-12
1
216 Views
Last Modified: 2010-04-04
I want to invoke a seperate exe from my delphi program to have it do some task such as process file and save to db, etc. This seperate exe is taking some parameters while it runs. How can I do it?

Thanks.

llucy
0
Comment
Question by:llucy88
1 Comment
 
LVL 44

Accepted Solution

by:
bruintje earned 50 total points
ID: 7073572
Hi Llucy88,

you can use createprocess or shellexecute

uses ShellApi;

ShellExecute(0,nil,'myexe.exe','param1 param2',nil,SW_SHOW);


createprocess is more powerfull but shellexecute is most of the times enough

HAGD:O)Bruintje
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

810 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