vbs script to create shortcut

I have a vbs script to create a web shortcut.  

I want to use the web icon instead of a system icon, I cant get shell32.dll, 512 to work anyway.  Its the only icon on the whole list that does not appear when the link is made.  

But anyway, the websites normally have an icon that is used for their page when shortcut is made.  Where on the system can i find this shortcut once it is made?  

So I will need to edit this vbs line...

oShellLink.IconLocation = "%systemroot%\system32\shell32.dll, 20"

Open in new window


** update**
ok I found the web .ico location and added this and it works.  However I noticed it does not work on some desktops, and shows a blank icon instead of the http://web.ico 

Is there a way to create alternative ico if one fails to work?  like
use http://web.ico
) else (
oShellLink.IconLocation = "%systemroot%\system32\shell32.dll, 20"
icecom4Asked:
Who is Participating?
 
icecom4Author Commented:
I was able to get this working, by manually downloading the favicon from the site, adding it to a location on the server, and then the scrips worked.
0
 
CodeCruiserCommented:
The reason it fails is that not all sites have the favicon. Show us the code you are now using.
0
 
icecom4Author Commented:
I was able to get this working, by manually downloading the favicon from the site, adding it to a location on the server, and then the scrips worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.