(int, string) = FindExecutable(filename, dir
)
Retrieves the name and handle of the executable (.EXE) file
associated with the specified filename.
Parameters
filename : string
A file name. This can be either a document or executable file.dir : string
The default directory.Comments
The function will raise an exception if it fails.
Win32 API References
Search for FindExecutable at msdn, google or google groups.
Return Value
The return value is a tuple of (integer, string)
The integer is the instance handle of the executable file associated
with the specified filename. (This handle could also be the handle of
a dynamic data exchange [DDE] server application.)
The may contain the path to the DDE server started if no server responds to a request to initiate a DDE
conversation.