Solved

Find the default web browser

Posted on 1997-08-27
2
165 Views
Last Modified: 2010-04-06
How do I open the default web browser, with a given URL, at run-time on the users machine.
0
Comment
Question by:essbb
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 50 total points
Comment Utility
Hi essbb,

I answered a question like this earlier.

Just add ShellAPI to your uses clause and try this:

VAR
   Cmd: String;

Cmd := 'http://www.microsoft.com/';
ShellExecute( 0,  'open', PChar(Cmd), nil, nil, SW_SHOWNORMAL );

This should fire up the default browser with the URL already set.

Cheers,
Ian C.
0
 

Author Comment

by:essbb
Comment Utility
Thanks,
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

14 Experts available now in Live!

Get 1:1 Help Now