?
Solved

How to change teh standard icon

Posted on 2010-09-19
8
Medium Priority
?
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

765 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