This method returns name and path of an executable file (.exe) associated with the specified document file.
ExeName = Exec_Method( "SYSTEM", "FINDEXE", File, Directory )
Name | Required | Description |
---|---|---|
File | Yes | Name of the document file to find the executable for. |
Directory | No | The default directory for the search. |
The name and path of the executable file associated with the specified document. If no association can be found a numeric Windows “SE_ERR_” code is returned instead.
This method is a simple wrapper around the Windows API FindExecutableW function - further information regarding this may be found on the MSDN website.
//// Example - find the exe associated with a text file// TextExe = Exec_Method( "SYSTEM", "FINDEXE", "test.txt", "c:\temp" )
SHELLEXEC method.