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.
In vb it would be:
Dim X
X = shell(c:\myapp.exe, vbhide)
I hope it's that simple in delphi.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
I have not tested it, but I'll trust your answer.
Your english is correct, very good.
Thank you.
Your english is correct, very good.
Thank you.
Thanks
ASKER
X = shell("c:\myapp.exe", vbhide)
Didn't want vb programmers correcting me :)