GetExecutableByExtension function
Shell utilities routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function GetExecutableByExtension(Extension: String): String;  

Description
The GetExecutableByExtension function returns the path to executable file for file extension specified by Extension string parameter.  

Examples
Result of GetExecutableByExtension('html') will be the path to default browser.  
Result of GetExecutableByExtension('wav') will be the path to default sound player.  
Result of GetExecutableByExtension('bmp') will be the path to MSPaint (or other bitmap editor).  

See also
acExtAssociation component.