-
G'day all and happy new year!
I tryed to use:
Retval = Shell("C:\FileName.html")
Obviously it doesn't work or I wouldn't be posting. Not only do I need to know how to do this but I need to know if it matters if they 've got I.E. or Netscape and if it does how do I find out.
Thanks,
Joey O.
-
This will work To Open the html file with there Default Browser Hope this Helps!!!
Declarations:
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
Code:
Call ShellExecute(hwnd, "Open", "C:\??\File.htm" & List1, vbNullString, vbNullString, 9)
------------------
_-_-_-_-_-_-_-_-_-_-_-_-_
Thanks
Sean Stickrod
ICQ:9639200
-
Thanks Stick!
I'm sure other new-bees like myself will benefit from this also!
JoeyO
-
One more thing, I had to use "Public Declaration" to make this work. Something I'm doing wrong?
-
Use Public Declare when you put the API declaration in a module, and use Private Declare when you put the API declaration in a form
-
Thanks for the clarification Clunietp :)
-