Solved

Adding Favourites/Bookmarks

Posted on 1998-06-25
1
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
delphi parse string to params 3 171
Press three keys together and trigger a function 3 74
How to define IfThen functions in one common unit? 4 74
Dev express lookupcombo 3 63
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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