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
'------------------------Legend for above params.
'hWnd Don't Touch
'lpOperation - choice: edit, explore, find, open, print, Null
'lpFile - File Name
'lpParameters = generally don't touch
'lpDirectory = full Path to File
'lpShowCmd long interger = how it's shown, minimize, maximize, hide, etc.
'Example: ShellExecute(0, "open", FN, "", PTFile, 1)
Public Function Launch(FN As String, PTFile As String)
' FN = File Name
' PTFILE = Path to File
Launch = ShellExecute(0, "open", FN, "", PTFile, 1)
End Function