How can it be created a SHORTCUT TYPE FILE from VB code !
How can I post an aplication in Quick Launch taskbar !
Thank you.
Printable View
How can it be created a SHORTCUT TYPE FILE from VB code !
How can I post an aplication in Quick Launch taskbar !
Thank you.
To create a shortcut in the Quick Launch menu:
Code:'In Visual Basic 5.0, change Stkit432.dll in the following
'statement to Vb5stkit.dll. Stkit432.dll is for Visual Basic 4.0
'For VB6, change it to VB6STKIT.DLL
Private Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal
lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As
String, ByVal lpstrLinkArgs As String) As Long
Private Sub Form_Load()
Dim lReturn As Long
lReturn = fCreateShellLink("", "Shortcut to MyProg", _
"c:\myprog\myprog.exe", "")
End Sub