Solved

Adding Favourites/Bookmarks

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

19 Experts available now in Live!

Get 1:1 Help Now