Solved

Adding Favourites/Bookmarks

Posted on 1998-06-25
1
151 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

20 Experts available now in Live!

Get 1:1 Help Now