Link to home
Start Free TrialLog in
Avatar of fibdev
fibdev

asked on

Running an exe file

I know how to do this with vb, but I'm new to delphi.  How do I run an application.  Also knowing how to open the defualt browser or mail program would be nice, but my question is about running an app.

In vb it would be:
Dim X
X = shell(c:\myapp.exe, vbhide)

I hope it's that simple in delphi.
Avatar of fibdev
fibdev

ASKER

ooops:
X = shell("c:\myapp.exe", vbhide)

Didn't want vb programmers correcting me :)
ASKER CERTIFIED SOLUTION
Avatar of fulvio_brasil
fulvio_brasil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please, pay attention:

The ShellExecute's 4 and 5 parameters are (I don't know the right english name, but) single quotes (like every string in Delphi), not (like in VB) double quotes.

And, to use this function, you need put 'ShellAPI' in your uses clause.
Avatar of fibdev

ASKER

I have not tested it, but I'll trust your answer.

Your english is correct, very good.

Thank you.