Solved

How to call a exe from delphi program

Posted on 2002-06-12
1
218 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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