How to create a URL shortcut to the desktop with Delphi 20

Updated on technology 2024-03-17
23 answers
  1. Anonymous users2024-02-06

    Please modify it yourself as needed.

    procedure addlink;

    vartmpobject : iunknown;

    tmpslink : ishelllink;

    tmppfile : ipersistfile;

    pidl : pitemidlist;

    startupdirectory : array[0..max_path] of char;

    linkfilename : widestring;

    linkshortname:string;

    begintmpobject := createcomobject(clsid_shelllink);Create a shell extension that establishes a shortcut.

    tmpslink := tmpobject as ishelllink;Get the interface.

    tmppfile := tmpobject as ipersistfile;Used for storage*The interface of the lnk file.

    Set the path where the nfolder is located.

    Set up a working directory.

    shgetspecialfolderlocation(0,csidl_desktopdirectory,pidl);Get the itemidlist for desktop

    shgetpathfromidlist(pidl,startupdirectory);Get the desktop path.

    linkshortname:=copy(extractfilename(,0,length(extractfilename(;

    linkshortname:='2017 Resident Medical Insurance Registration' ;

    linkfilename := string(startupdirectory)+'\'+linkshortname+'.lnk';

    false);

    Save*lnk file.

    showmessage('The shortcut has been added successfully'''+linkshortname+'.lnk''!');

    end;

  2. Anonymous users2024-02-05

    Right-click on the WIN7 system desktop, select the new --- shortcut, 2 In the URL Create Shortcut dialog box, enter the connection address of the URL shortcut, that is, **, and then click Next.

    3 Enter the name of the URL shortcut and click Done, 4ok, .The url shortcut is successfully created, and the URL shortcut is created through the browser favorite.

    Open the browser, and then click on the collection, the web page ** favorite, click on the favorite folder, find the web page just collected, drag it directly to the desktop with the mouse, at this time the url ** shortcut was created successfully,

  3. Anonymous users2024-02-04

    References shlobj, activex, comobj in uses

    procedure addlink;

    vartmpobject : iunknown;

    tmpslink : ishelllink;

    tmppfile : ipersistfile;

    pidl : pitemidlist;

    startupdirectory : array[0..max_path] of char;

    linkfilename : widestring;

    linkshortname:string;

    begintmpobject := createcomobject(clsid_shelllink);Create a shell extension that establishes a shortcut.

    tmpslink := tmpobject as ishelllink;Get the interface.

    tmppfile := tmpobject as ipersistfile;Used for storage*The interface of the lnk file.

    Set the path where the nfolder is located.

    Set up a working directory.

    shgetspecialfolderlocation(0,csidl_desktopdirectory,pidl);

    Get the itemidlist for desktop

    shgetpathfromidlist(pidl,startupdirectory);Get the desktop path.

    linkshortname:=copy(extractfilename(,0,length(extractfilename(;

    linkfilename := string(startupdirectory)+'\'+linkshortname+'.lnk';

    false);Save*lnk file.

    showmessage('The shortcut has been added successfully'''+linkshortname+'.lnk''!');

    end;I just changed it for you. You try. Just call this function directly!!

  4. Anonymous users2024-02-03

    Add the ** to the favorites first,This should be,It's the web page you want to save,There is a yellow five-pointed star at the top of the web page,You click on it,The left side of the computer will come out and slip,The above one is added,One is organized,You click to add it,At this time, it will appear below,Then select him with the mouse,Click the right button - send - to the desktop shortcut,That's it!

  5. Anonymous users2024-02-02

    Right-click on the blank space of the page, select "Create Shortcut", and click OK in the pop-up dialog box!

  6. Anonymous users2024-02-01

    You can create a new shortcut for the web page on the computer desktop, and the following steps demonstrate that the system is Windows 7.

    1. First copy the address of the target web page in the browser.

    2. Then right-click the mouse on the computer desktop to bring up the right-click menu.

    6. Then give the shortcut a name and click the Done button.

    7. After completing the above settings, you can establish a shortcut to a web page on the desktop.

  7. Anonymous users2024-01-31

    The wise advantage is in the applet, how to get it to the page.

  8. Anonymous users2024-01-30

    With 360 browser. Collect it first, and then find it in the collection**Drag it directly to the desktop.

  9. Anonymous users2024-01-29

    Open a web page.

    I see an icon with a five-pointed star in the middle of it called Favorites, and click on it. A frame appears in the left, and there are three words in the first line, and there are additions below the words, and the dots can be added. Then drag and drop it directly to the desktop with the mouse and you're done.

  10. Anonymous users2024-01-28

    Browse the web page where you want to set up a desktop shortcut" first collect it, really pick it up, don't choose the collection folder (this understands, there is a collection button in the upper left corner of the web page window) >> then click the collection button "find the web page you just collected" "Right Jian" send "Zhuo Noodles Shortcut" or really connect the right Jian copy "to the desktop paste "If you can't" open the C disk "Click to search" Enter the name of the web page you just collected [Don't enter the full name, the first few are good.'Click on the webpage just now to see the name of the webpage "After the correct search, there must be the webpage just now" and then really pull the webpage to the desktop OK>>> it must be OK.,No, you curse me....

  11. Anonymous users2024-01-27

    2.When browsing the web, click on the "File" - Send - desktop shortcut on the menu bar, as shown below

  12. Anonymous users2024-01-26

    Go to the ** you want, there is a favorite on it, click on it, then click on Add to Favorites, press it and there is this ** in the favorites, you can drag it to the desktop.

  13. Anonymous users2024-01-25

    Right-click on an empty space on the desktop and select "New" - Shortcut.

  14. Anonymous users2024-01-24

    Tools Material: Computer.

    The first step is to turn on the computer and go to the desktop.

    Step 2, after entering the desktop, find the blank space right mouse button - New - Shortcut.

    Step 4: Enter the name of the shortcut on the switch interface and click Done.

    Step 5: After completion, you can create a shortcut to open it.

  15. Anonymous users2024-01-23

    1. Play the **fox browser on the computer.

    2. After the computer plays the **fox browser, open the web page you want to save.

    3. After Firefox opens the webpage you want to save, click the icon in front of the left mouse button, and then drag it to the desktop.

    4. Click the icon in front of the left mouse button, and then drag it to the desktop, you can create a web shortcut to the desktop.

  16. Anonymous users2024-01-22

    1.Open Firefox;

    2.access to web pages that require the creation of shortcuts;

    3.Drag the small globe to the table.

  17. Anonymous users2024-01-21

    , close, and double-click the icon.

  18. Anonymous users2024-01-20

    Tools required Raw materials.

    Computer, Firefox.

    Search for or find the Firefox installation file on your computer2Open this folder and find Firefox Apps3Right-click on the Firefox app.

    4.After clicking, select Send to, and click the desktop shortcut to complete the addition.

  19. Anonymous users2024-01-19

    1. First, copy the address of the target page in Firefox.

    2. Then right-click the mouse on the computer desktop to bring up the right-click menu.

    6. Then name the shortcut and click "Done".

    7. After completing the above settings, you can create a shortcut to a web page on the desktop.

  20. Anonymous users2024-01-18

    Open Firefox;

    access to web pages that require the creation of shortcuts;

    Drag the small globe to the table.

  21. Anonymous users2024-01-17

    Once you've associated the URL with Firefox, the URL shortcut will naturally open with Firefox.

  22. Anonymous users2024-01-16

    Find the folder under the installation path, right-click on the icon, there is a shortcut to send to the desktop, and it's OK.

    Or start the program again and find the Firefox icon on the program and right-click it to send it to the desktop.

  23. Anonymous users2024-01-15

    Click: File - Save Frame As - Save to Desktop, and you can open it on your desktop next time!

Related questions
10 answers2024-03-17

Random numbers in pascal.

Random numbers refer to a series of numbers that theoretically have no rules to follow, have an equal probability of each number appearing within a specified range, and cannot be used to follow the previous number. The basic principle of a general random number generator is: first, initialize a random seed, the initial value of which can be an arbitrary integer; Every time a random number is obtained, a special operation is performed based on the random seed, a random number is obtained and returned, and then some operation is performed on the random seed to change the value of the random seed. >>>More

14 answers2024-03-17

I feel like what you said is not clear! It shouldn't take me more to create a C++ file, right? It's easy to create with Notepad or VC++! >>>More

14 answers2024-03-17

function getsqlserverlist(strings:tstrings):boolean;

The function is implemented as follows: >>>More

5 answers2024-03-17

Conditions required for the creation of 5a scenic spots: >>>More

7 answers2024-03-17

Don't try it, the squid is so hot that it's water, and you can't wipe it off in the electric oven, and it's still dangerous.