Solved

How to call a exe from delphi program

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now