Solved

Opening a file with the default browser

Posted on 2000-03-04
2
150 Views
Last Modified: 2010-05-02
I have an application built that writes some calculation answers to a .htm file in the default temp directory.  To view the results, I call explorer.exe:

Shell "explorer.exe " & sTempPath & "\answer.htm", vbNormalFocus

How would I open it with the associated web browser - whatever it may be?
0
Comment
Question by:douglaskarr
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 10 total points
Comment Utility
Use the ShellExecute API call:

"HOWTO: Use ShellExecute to Launch Associated File (32-bit)"
http://support.microsoft.com/support/kb/articles/Q170/9/18.asp
0
 

Author Comment

by:douglaskarr
Comment Utility
Thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now