r/vbscript • u/HarvestThyWheat • Dec 21 '20
Using SHELL32.dll for icons in a script
Hello,
I was wondering, if possible, to use default windows icons from SHELL32.dll when using the CreateShortcut method.
Thanks in advance.
3
Upvotes
2
u/redoctobershtanding Dec 21 '20
https://social.technet.microsoft.com/Forums/exchange/en-US/16444c7a-ad61-44a7-8c6f-b8d619381a27/using-icons-in-powershell-scripts?forum=winserverpowershell
Win10 Icons
Win8 Icons
2
u/jcunews1 Dec 21 '20
Yes. Just specify the file name, followed by a comma character, then followed by a number which specifies the zero-based index of the icon, for the
IconLocationproperty. e.g.2
u/hackoofr Dec 22 '20
Here is an example that can create a shortcut on your desktop that can start your Notepad using the shell32.dll !
1
u/hackoofr Dec 21 '20
I think you can !