How to change teh standard icon

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
Bianchi928Asked:
Who is Participating?
 
Psy053Connect With a Mentor Commented:
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
 
Bianchi928Author Commented:
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
 
Bianchi928Author Commented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
Psy053Commented:
Could you put it on a network drive or website, and then have the script pull it down to the local pc?
0
 
Bianchi928Author Commented:
I guess i might to do that...All in a script would have been ideal..
0
 
Psy053Commented:
It's possible, it will just take me a little while to work out.
0
 
Bianchi928Author Commented:
It would be good if you could....it will makes things a lot easier..I will give max points for that
0
 
Bianchi928Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.