/build/static/layout/Breadcrumb_cap_w.png

applying icon to url shortcut

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. 


0 Comments   [ + ] Show comments

Answers (6)

Answer Summary:
Posted by: ninjaman 10 years ago
Second Degree Green Belt
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.

Posted by: talonsprem87 10 years ago
10th Degree Black Belt
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


Comments:
  • not helped, what should I do with that dll - ninjaman 10 years ago
    • use an icon grabbing tool, and open the above mentioned dll in that tool. u'll find your icon in the dll - talonsprem87 10 years ago
  • Hi Prem, Thank You it worked. I am glad for all the responses. VBSCab I believe you should control your anger - ninjaman 10 years ago
Posted by: asman 10 years ago
Purple Belt
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


Comments:
  • c:\windows\system32\shell32.dll file contains plenty of icons.. - jagadeish 10 years ago
  • Thank you asman - ninjaman 10 years ago
Posted by: ninjaman 10 years ago
Second Degree Green Belt
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.


Comments:
Posted by: mpace 10 years ago
Red Belt
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.

Comments:
  • 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. - mpace 10 years ago
Posted by: anonymous_9363 10 years ago
Red Belt
-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.


Comments:

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ