Kiegs219
Jan 13th, 2000, 10:19 AM
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!
Inhumanoid
Jan 13th, 2000, 08:49 PM
Use fCreateShellLink (you need Vb5stkit.dll in the directory of your app)
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, "")
AaronC
Apr 17th, 2000, 05:09 AM
Check out http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=7349.
There is code from the VB6 Pro CD that creates shortcuts.