Solved

How to change teh standard icon

Posted on 2010-09-19
8
425 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now