Solved

Adding Favourites/Bookmarks

Posted on 1998-06-25
1
156 Views
Last Modified: 2010-04-04
How do you add an internet shortcut from a delphi app?
(windows - active desktop)

Shortcut Properties required for configuration
----------------------------------------------
Type: Internet Shortcut
Location: DirectoryPath
MS DOS Name: Filename.URL
TargetURL: http://27.0.0.1/hello.htm
0
Comment
Question by:greenrc
1 Comment
 
LVL 4

Accepted Solution

by:
d003303 earned 100 total points
ID: 1355914
procedure CreateINternetShortCut(ShortCutName, Path, URL, WorkingDir : string);
var INIFile : TINIFile;
begin
  INIFile := TINIFile.Create(Path + ShortCutName + '.url');
  try
    INIFile.EraseSection('InternetShortcut');
    INIFile.WriteString('InternetShortcut', 'URL', URL);
    INIFile.WriteString('InternetShortcut', 'WorkingDirectory', WorkingDir);
  finally
    INIFile.Free;
  end;
end;

Slash/d003303
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IdTCPClient and IdTCPServer exchanging data on desktops and not Android 11 140
CheckListBox usage 3 71
Microsoft Access 97 and Delphi XE2 9 51
DBCtrlGrid, Delphi, Scroll 8 35
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

791 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