Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing Explorer 6

Status
Not open for further replies.

summitx

Programmer
Jan 20, 2006
7
0
0
CA
The code for my program is as follows :
Private Sub cmdAgree_Click()
MsgBox "Thank you, have fun, and please call us with any questions"
Dim ret As Long
ret = ShellExecute(0&, vbNullString, "\cdcatalogue\index.htm", vbNullString, vbNullString, vbNormal)
End
End Sub

The ShellExecute works well for Internet Explorer 5.5 and Netscape only, it will not execute Explorer 6 or older than Explorer 5, I believe the error is in my code but am not sure, I also have not tried it on any Netscape previous to the newest one so they may not work either, any information or fixes would be greatly appreciated. Thanks
 
I ended up hardcoding the path to "Iexplore.exe" which is not good and not what I wanted to do, but the only way I could make it work.
If it works by placing the URL in the START ->> RUN box, why not with the SHELL command?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top