how to run an exe file from a button

Please discuss general Delphi programming topics here.

how to run an exe file from a button

Postby hacchan » December 31st, 2004, 6:20 pm

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
hacchan
Active Member
Active Member
 
Posts: 6
Joined: December 8th, 2004, 3:30 am
Location: indonesia

Postby Johnny_Bit » January 1st, 2005, 10:49 am

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.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Re: how to run an exe file from a button

Postby dennis » January 5th, 2005, 8:04 am

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
dennis
Active Member
Active Member
 
Posts: 5
Joined: January 5th, 2005, 7:35 am


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 16 guests

cron