| View previous topic :: View next topic |
| Author |
Message |
hacchan Member
Joined: 08 Dec 2004 Posts: 5 Location: indonesia
|
Posted: 31/12/04 18:20 Post subject: how to run an exe file from a button |
|
|
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 |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 158
|
Posted: 01/01/05 10:49 Post subject: |
|
|
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. |
|
| Back to top |
|
 |
dennis Member
Joined: 05 Jan 2005 Posts: 5
|
Posted: 05/01/05 08:04 Post subject: Re: how to run an exe file from a button |
|
|
| 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 |
|
| Back to top |
|
 |
|