I use a script to install a shortcut on the end-users desktop and I would like to change the icon to a preloaded image in the system files. I know that I have to use "iconlocation" to do this but I can't seem to figure out how to locate the image I want and set it as the icon.
Any assistance would be greatly appreciated.
Travis
Code:
Dim oShell
Dim sDesk
Dim oShortCut
Dim strFileName
Set oShell = CreateObject("WScript.Shell")
sDesk = oShell.SpecialFolders.Item("Desktop")
Set oShortCut = oShell.CreateShortcut(sDesk & "\GDS Db.lnk")
With oShortCut
.TargetPath = "*********************\Db Opener.vbs"
.Description = "GDS Db"
.WorkingDirectory = "************************"
.IconLocation = "C:\WINDOWS\system32\shell32.dll,0"
.Save
End With
MsgBox "Installation Complete!"
Any assistance would be greatly appreciated.
Travis