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.
Answers (6)
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 11 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 11 years ago
-
Hi Prem, Thank You it worked. I am glad for all the responses. VBSCab I believe you should control your anger - ninjaman 11 years ago
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
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 11 years ago
>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:
-
Thank You - ninjaman 11 years ago