hello!
I need to create a shortcut to my program in "windows\startmenu\startup" and on the desktop, but i don't know hot to create a shortcut. Please help.
thank you for your time!
Printable View
hello!
I need to create a shortcut to my program in "windows\startmenu\startup" and on the desktop, but i don't know hot to create a shortcut. Please help.
thank you for your time!
Use fCreateShellLink (you need Vb5stkit.dll in the directory of your app)
Code: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
'Function that creates shell links
lReturn = fCreateShellLink("..\startup", sCaption, Text1.text, "")
Check out http://www.planet-source-code.com/vb...xtCodeId=7349.
There is code from the VB6 Pro CD that creates shortcuts.