Click to See Complete Forum and Search --> : Creating Desktop Shortcut for an app
shashin
Nov 18th, 1999, 11:54 AM
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.
alacrity_99@yahoo.com
don
Nov 18th, 1999, 12:30 PM
Yes there is an API function to create a shorcut. You cann create a shorcut wherever you want :
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 ;)
Yonatan
Nov 18th, 1999, 07:14 PM
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: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69
don
Nov 21st, 1999, 05:38 PM
Yo Yonathan,
Can't you just give an example of what you mean !!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.