Link to home
Create AccountLog in
Avatar of thull6321
thull6321Flag for United States of America

asked on

Specify Flavicon ICON in URL

This may seem more troubl than it's worth but....   I have upgraded a suite of educational applications on our network used on about 5000 computers - it was a server/client setup but now the client part is web based.  After installing it I attempted to create shortcuts for our students using the old program ICON - as soon you clicked once, the shortcut ICON changed.  I called the company who was of no help telling me I would have to call Microsoft.  After searching and reading I came to understand the issue is that the web content uses a generic FLAViCON Icon for the web pages.  Since this is a suite of programs that previously all had separate ICONs, I don't want to just change the FLAVICON on the server - The math page ICON should be different from the READING, which is different from the teacher utility, etc.  So, if I place different ICON files in the appropriate location on the server can I speciy in the URL of my shortcuts which to use for each application?  If so, how?
Avatar of jfromanski
Flag of Poland image

Do yoy mean FAVICON, a small icon that appears left of url in addres box of page? if yes then add

  <link rel="icon" href="iconname.ico" type="image/x-icon">
  <link rel="shortcut icon" href="iconname.ico" type="image/x-icon">

to the <HEAD> sections of ypur pages.
Avatar of thull6321


Yes - I mean FAVICON - I realized my error too late and am looking for an edit, but so far......  

Anyway - I think that dispite your finding my typo, you have missed the point - it's not my pages - I can't edit the program/web content of a publishers work.    I'm trying to give our students and teachers different ICONs for each program but because of the way the company wrote the web interface, all the different web clients refer to the same generic FAVICON.  While I cannot edit their code, I can drop a few small files in the program directory  - - can I make my desktop shortcut to the URL always refer to that ICON, though?  
Once you have a shortcut on the desktop, you can always change it's icon (right click, properties/ change icon button). Unfortunately you can't use http://website/icon.ico there, it must be a local image or from network share.
Thanks - but that is the issue - I change the icon and as soon as I click the shortcut and launch the web interface, my shortcut ICON changes to the FAVICON icon referred to in their HTML code.  

Perhaps I am missing something in the way I'm selecting the local image?  It's complicated by the fact I have  I get this to 5000 computers - my plan was to use Symantec Ghost console to copy the shortcut to the All Users profile - desktop.  So, any help on how to assign that ICON and force it to stay when deplyoing it in this manner?
Avatar of ziad270

According to what i read you want to create a shortcut on the computers running windows and set for each shortcut a specific Icon (which is not the website favicon)

But as jfromanski said...your icon must be available locally. Is it possible or no ?
If so..and if the icon still change, maybe you should put your .url as readonly ?

OK - that looks like an entry in an ini file or something like that.  How/where do I put these lines and how would I do that massely on about 5000 computers?  (The icon is available locally - part of my ghost task copied the icon to the appropriate location and I have checked that part is successful.)

I found the following VBS script and a few different variations and have been trying to deploy that via a ghost task but am not successful and what errors is dependent on changes I make the the script.  

For example, In this version -  when running it manually I get the shortcut, but it is copied only for the logged in user - not in the All Users desktop where I need it.  When trying it via a ghost task nothing seems to happen - no errors, no shortcut, nothing.....

Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objShell.SpecialFolders("Desktop")
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\FASTT Math.lnk")
' Name for Shortcut to add
objURLShortcut.TargetPath = "
' Path to icon
objURLShortcut.IconLocation = "C:\Program Files\Scholastic Enterprise\Fastt Math\FM.ICO"
' Path for shortcut

This version resulted in an error message - "Object doesn't support this property or method 'objURLShortcut.IconLocation'

Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objShell.SpecialFolders("Desktop")
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\FasttMath.lnk")
objURLShortcut.TargetPath = "
objURLShortcut.IconLocation " C:\Program Files\Scholastic Enterprise\Fastt Math\FM.ICO "

Since the first script is successful when run manually I am inclined to stick with it tweaking what I need to get it to do exactly what I need, if possible.

Can anyone answer this?
1. Other than the extra commented lines that describe what some of the lines do, what is different in the two scripts?  The actual action lines look exactly the same to me.
2. What do I need to edit to have this copy the shortcut into All Users desktop instead of the current user's desktop?
3. Do you have any clue how to get this to apply correctly via Ghost?

Avatar of ziad270

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account