PDA

Click to See Complete Forum and Search --> : Change shortcut's Icon from VB?


coox
Nov 15th, 1999, 10:16 PM
Is it possible to change a Windows Shortcut's Icon from VB? Short & sweet....

Oh, and also change what it's a shortcut to?

[This message has been edited by coox (edited 11-16-1999).]

Inhumanoid
Nov 15th, 1999, 10:26 PM
It's oroibably not possible to edit a *.lnk file trough code cause it's a binary file...

It is possible to generate *.lnk files:



Private Declare Function fCreateShellLink Lib "Vb5stkit.dll" (ByVal _
lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal _
lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long

Inhumanoid
Nov 15th, 1999, 10:27 PM
he he he, what the hell did I type there:
"oroibably"... whoohoo, I've been behind the comp too long...