Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to call a exe from delphi program

Posted on 2002-06-12
1
Medium Priority
?
229 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

886 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