Solved

How to change teh standard icon

Posted on 2010-09-19
8
431 Views
Last Modified: 2012-05-10
I have this little script that i need to send via email , but instead of the standard Internet
icon I want it to be something different ...like the attached gif
 
lk.GIF
0
Comment
Question by:Bianchi928
  • 5
  • 3
8 Comments
 

Author Comment

by:Bianchi928
ID: 33713979
Oops fogot about the script

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\GDT Interaction Training.url")
oUrlLink.TargetPath = "http://goodyearanddunloptyres.interactiontraining.net/"
oUrlLink.Save
Wscript.Echo "Desktop icon created"
0
 
LVL 14

Accepted Solution

by:
Psy053 earned 125 total points
ID: 33714030
I have made some changes to your script that should do what you are after.

Note that the Shortcut is being saved as a .LNK instead of a .URL - apparently it has to be this way in order to get the icon to display.

Also, I think you are going to need to covert your GIF to an ICO - there are plenty of tools out there that should be able to help with this.


set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\GDT Interaction Training.lnk")
oUrlLink.TargetPath = "http://goodyearanddunloptyres.interactiontraining.net/"
oUrlLink.IconLocation = "c:\pathto\ICON.ICO"
oUrlLink.Save
Wscript.Echo "Desktop icon created"

Open in new window

0
 

Author Comment

by:Bianchi928
ID: 33720670
You're almost there !! For this to work I will have to send the icon on the users computer  before sending the script ..right ? Any other way  of having all done in one script...
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 14

Expert Comment

by:Psy053
ID: 33720774
Could you put it on a network drive or website, and then have the script pull it down to the local pc?
0
 

Author Comment

by:Bianchi928
ID: 33720791
I guess i might to do that...All in a script would have been ideal..
0
 
LVL 14

Expert Comment

by:Psy053
ID: 33720924
It's possible, it will just take me a little while to work out.
0
 

Author Comment

by:Bianchi928
ID: 33720945
It would be good if you could....it will makes things a lot easier..I will give max points for that
0
 

Author Closing Comment

by:Bianchi928
ID: 33729863
Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question