Reputation: 916
I have SpeedButton on my form and I want it open avi file with associated program.I tried Windows.winexec but it doesn't seem to be worked.
Upvotes: 3
Views: 7161
Reputation:
You want ShellExecute - see http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx for the API and also this link http://delphi.about.com/od/windowsshellapi/a/executeprogram.htm for details of how to use it from Delphi.
Upvotes: 15