Hi Rob.
Do you want to get a string containing the executable file associated to that file type or do you actually want to open a file with it's associated program?
If the first I'm not sure on how to do it, but I think I've seen something about that somewhere, if the latter you can use the ShellExecute command to open a file with it's associated program.
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation _
As String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Function OpenyourFile(strUrl As String) As Long
Dim hWnd As Long
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.