Page 1 of 1

how to run an exe file from a button

PostPosted: December 31st, 2004, 6:20 pm
by hacchan
i need to know how to run an executable file from a button within a form (i.e. from procedure button1Click() to run wave.exe)
thanks for any help

PostPosted: January 1st, 2005, 10:49 am
by Johnny_Bit
Sorry to be rude, but don't you read help or books that came along with delphi, or even search google for it?

Well if not, then here's an answer (simple, rest of it is in help instaled on your computer with delphi):

Try to catch something like: WinExec (I'm preety sure it is there), ShellExecute(Little harder to understand but great! unit ShellApi)

that's all you have to find. Doesn't it look simple? It is simple.

Re: how to run an exe file from a button

PostPosted: January 5th, 2005, 8:04 am
by dennis
hacchan wrote:i need to know how to run an executable file from a button within a form (i.e. from procedure button1Click() to run wave.exe)
thanks for any help


try following ways
sorry your question too simple
1. winexec ..
2.shellexec
3.createprocess...

you had better to look msdn sdk