Hi,

I have been an icon. I have a url short for suppose www.yahoo.com. So for that shortcut I have to apply that icon. Can you please let me know how to do that. 

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1

This is how I did. I got the icon from the source. I copied it to C:\Windows\System32. Then on the urlshortcut in the source, I right click -> properties -> icon -> point to the ico.

Thats it.

Answered 05/24/2013 by: ninjaman
Second Degree Green Belt

Please log in to comment

Answers

0

Fairly simple.
1. Open registry
2. type ".url"
3. As soon as its stops on the .URL hive, notice the name of default field
4. Type the same name again in registry. Once it stops on InternetShortcut Hive, expand it
5. click default icon hive. Notice the value in default field. C:\windows\system32\url.dll,(icon index 5).
Hope that helps

Answered 05/24/2013 by: talonsprem87
Tenth Degree Black Belt

  • not helped, what should I do with that dll
    • use an icon grabbing tool, and open the above mentioned dll in that tool. u'll find your icon in the dll
  • Hi Prem, Thank You it worked. I am glad for all the responses. VBSCab I believe you should control your anger
Please log in to comment
0

Set WshShell = CreateObject("WScript.Shell")
strLocation = WshShell.SpecialFolders("AllUsersPrograms")

set oShellLink = WshShell.CreateShortcut(strLocation & "\ITninja.lnk")
oShellLink.TargetPath = "http://www.itninja.com/"
oShellLink.IconLocation = "C:\Random_Folder\Some_icon_i_want.ico" ' create u'r own icon-file or use existing...
oShellLink.Description = "roflmao"
oShellLink.Save

Answered 05/24/2013 by: asman
Purple Belt

  • c:\windows\system32\shell32.dll file contains plenty of icons..
  • Thank you asman
Please log in to comment
0

I have an icon given. When we get the url of a shortcut, the default icon which is showing is ''e'' suppose. I have to replace that icon with the icon given. Hope it is clear now.

Answered 05/24/2013 by: ninjaman
Second Degree Green Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
Please log in to comment
0

Create a text file with the following configured for your URL and save the file as MyLink.url:

[InternetShortcut]
URL=http:www.itninja.com
IconFile=C:\folder\itninjaicon.ico

Edit: This acted fussy on one system. Something that worked every time was using the method above to create the .url file, and then right clicking and choosing Properties. Then click Change Icon... and manually choose the icon. As long as the icon file is in the same place on every computer you can distribute the .url file and the icon will remain the same.
Answered 05/24/2013 by: mpace
Red Belt

  • Edit: This acted fussy on one system. Something that worked every time was using the method above to create the .url file, and then right clicking and choosing Properties. Then click Change Icon... and manually choose the icon. As long as the icon file is in the same place on every computer you can distribute the .url file and the icon will remain the same.
Please log in to comment
-1

>not helped, what should I do with that dll
It genuinely concerns me that you know so little about operating systems and yet are being let loose creating packages for deployment to a business's PCs.

What's even more concerning is that you are part of a seemingly ever-growing group of people who are incapable of even the most basic research or individual training.

Answered 05/24/2013 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity