Results 1 to 4 of 4

Thread: Creating Desktop Shortcut for an app

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    1

    Post

    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]

  2. #2
    New Member
    Join Date
    May 1999
    Location
    Zevenbergen, Holland
    Posts
    5

    Post

    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

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    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

  4. #4
    New Member
    Join Date
    May 1999
    Location
    Zevenbergen, Holland
    Posts
    5

    Post

    Yo Yonathan,

    Can't you just give an example of what you mean !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width