We include a copy of the unit fmxUtils found in the borland demo folder: C:\Program Files\Borland\Delphi6\Demos\Doc\Filmanex. Replace Delphi6 with whatever version number you're using.
All you need is the name of the file with path, and the fourth parameter, which could also be one of these:
SW_SHOWNORMAL
SW_SHOWMINIMIZED
SW_SHOWMAXIMIZED
SW_SHOWNOACTIVATE
SW_SHOW
SW_MINIMIZE
SW_SHOWMINNOACTIVE
SW_SHOWNA
SW_RESTORE = 9;
ExecuteFile is really just a wrapper for ShellExecute(), which you could call instead (it has two more parameters, and I've never tried to use it).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.