Table of Contents

FINDEXE method (System)

Description

This method returns name and path of an executable file (.exe) associated with the specified document file.

Syntax

ExeName = Exec_Method( "SYSTEM", "FINDEXE", File, Directory )

Parameters

NameRequiredDescription
FileYesName of the document file to find the executable for.
DirectoryNoThe default directory for the search.

Returns

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.

Remarks

This method is a simple wrapper around the Windows API FindExecutableW function - further information regarding this may be found on the MSDN website.

Example

 
//// Example - find the exe associated with a text file//
   
   TextExe = Exec_Method( "SYSTEM", "FINDEXE", "test.txt", "c:\temp" )
 
 
 

See Also

SHELLEXEC method.