Solved

Adding Favourites/Bookmarks

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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