Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Opening a file with the default browser

Posted on 2000-03-04
2
Medium Priority
?
161 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 40 total points
ID: 2583976
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
ID: 2584005
Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

824 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