|
Previous Top Next |
Prototype: | (String pExtension),String |
pExtension | Extension to find executable for. |
Returns | The full path and filename of the associated executable if it is found. If not executable is found it returns an empty string. |
This method can be used to find executable programs that are associated with extensions without the file existing. GetAssociatedProg requires that the file exists so GetExeFromExtension is an ideal replacement if the file doesn't exist. Note that the extension parameter must ONLY include the extension part, not a full filename.
Example:
ITS ITShellClass
Loc:Extension String(10)
Code
Loc:Extension = '.aprj' !! Build Automator Extension
Message('Program to open ' & Clip(Loc:Extension) & ': ' &|
ITS.GetExeFromExtension(Loc:Extension),'Associated Executable',ICON:Exclamation)
See also:
GetAssociatedProg
GetAssociatedVerb