Solved

How to change teh standard icon

Posted on 2010-09-19
8
429 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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