-
Hello !!
I am interested in creating a desktop shortcut for my application. I am using VB 5.0 as the tool.
Is there not any API function to work out the same !! ???
If somebody could just help me for the same i would be really thankfull.
Thanking you in advance.
Please take note of my email address.
[email protected]
-
Yes there is an API function to create a shorcut. You cann create a shorcut wherever you want :
Code:
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()
lngResult = fCreateShellLink("..\..\Desktop", _
"Link to my program ", "Filename.exe", "OK")
End Sub
I hope this will help you !
Greetz Don ;)
-
If you want, E-Mail me and I'll send you a sample program which does this better - without using the Setup Kit API and it puts the link wherever the Desktop directory is - which can be very different on different computers...
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
-
Yo Yonathan,
Can't you just give an example of what you mean !!