VBScript to change XYplorer's taskbar icon on Win 7

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

VBScript to change XYplorer's taskbar icon on Win 7

Post by zer0 »

Being a fan of old-school orange icon and using the installer package, I wasn't best pleased when Win 7's taskbar was changing the icon every time I updated. And I didn't want to reassign the ICO file manually -- too much work :P So what I did was to create a little VBScript file to do the legwork for me. Its source code is as follows:

Code: Select all

Set sh = CreateObject("WScript.Shell")
Set shortcut = sh.CreateShortcut("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\XYplorer\XYplorer.lnk")
shortcut.IconLocation = "C:\Program Files (x86)\XYplorer\xyapp.ico"
shortcut.Save
Zip with the script is attached -- just change the location(s) as appropriate.
To see the attached files, you need to log into the forum.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Post Reply