Assigning icon to shortcut
Hi
I need VB script to assign a icon(.ico) to the shortcut(.lnk).
I need VB script to assign a icon(.ico) to the shortcut(.lnk).
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
AngelD
15 years ago
Posted by:
nrkres
15 years ago
Posted by:
zipsantro
15 years ago
strPrograms = WshShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%") & "\Start Menu\Applications"
set oShellLink = WshShell.CreateShortcut(strPrograms & "\abc.lnk")
In the operating system we have few Environment Varables and few special folders. VBScript invokes them with two funtions and those are SpecialFolders (If using Special Folders) and ExpandEnvironmentStrings (Env var needs to be expanded before use).
Hope this help you understand.
set oShellLink = WshShell.CreateShortcut(strPrograms & "\abc.lnk")
In the operating system we have few Environment Varables and few special folders. VBScript invokes them with two funtions and those are SpecialFolders (If using Special Folders) and ExpandEnvironmentStrings (Env var needs to be expanded before use).
Hope this help you understand.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.