|
-
Dec 30th, 1999, 05:42 AM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 30th, 1999, 06:36 AM
#2
Addicted Member
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
-
Dec 30th, 1999, 09:31 AM
#3
Thread Starter
Hyperactive Member
Thanks Stick!
I'm sure other new-bees like myself will benefit from this also!
JoeyO
-
Dec 30th, 1999, 09:50 AM
#4
Thread Starter
Hyperactive Member
One more thing, I had to use "Public Declaration" to make this work. Something I'm doing wrong?
-
Dec 30th, 1999, 01:12 PM
#5
Guru
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
-
Dec 30th, 1999, 09:37 PM
#6
Thread Starter
Hyperactive Member
Thanks for the clarification Clunietp
-
Dec 30th, 1999, 11:12 PM
#7
Guru
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|