Solved

How to change teh standard icon

Posted on 2010-09-19
8
432 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 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
Technology Partners: 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
powershell script 9 81
Adding a countdown to HTA 12 113
how to read the text file and convert it to csv. 5 44
VB script for outlook to copy mail to OneNote 2 38
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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