ShellExecute will open a file with its default application.
VB Code:
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 'Usage strFileName = "MyFile.jpg" ShellExecute hwnd, "open", strFileName, "", "", 1




Reply With Quote