Mark...
Quote:
>All I want to do is be able to launch the file
>with it associated application just like Windows Explorer.
Use the ShellExecute function:
Public Const SW_SHOW = 1
Public 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
Use it like this:
ShellExecute(0, "open", "C:\MyDir\MyPath\MyFile.txt", "", "", SW_SHOW)
--
Ben Baird, MVP
Visual Basic Thunder 3.0
http://www.{*filter*}highway.com/~psy/vbthunder/
Common Controls Replacement Project
http://www.*-*-*.com/
Please keep your questions on the newsgroups.