Opening a file with the corresponding program

I have a SpeedButton in my form and I want it to open an avi file with a related program. I tried Windows.winexec but it does not seem to work.

+3
source share
1 answer

You want ShellExecute - see http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx for the API, as well as this link http://delphi.about.com/od/ windowsshellapi / a / executeprogram.htm to learn how to use it from Delphi.

+15
source

Source: https://habr.com/ru/post/1727100/


All Articles