Results 1 to 2 of 2

Thread: A question about shortcuts

  1. #1

    Thread Starter
    Member Black Wolf's Avatar
    Join Date
    Apr 2006
    Location
    Visual Basic
    Posts
    61

    Unhappy A question about shortcuts

    Hi
    I have a small question about creating shortcuts:

    How can I create a shortcut for a specify folder using
    my specify icon on my desktop ?

    I really need your help in this one

    Best Regards.
    Always New I Never Belonged In This World .. I Wasn't Made For This
    But I'LL Never Forget Those Who Betrayed Me .... And Those Who Never Failed My Trust.

    Visual Basic 6.0 : The Choice of The Professional

  2. #2
    Member nf_vb's Avatar
    Join Date
    Mar 2007
    Location
    Portugal
    Posts
    35

    Re: A question about shortcuts

    try this

    Create:

    Private Declare Function fCreateShellLink Lib "Vb6stkit.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long

    Private Sub Command3_Click()
    Dim lReturn As Long
    lReturn = fCreateShellLink("C:\windows\documents and settings\user\desktop\
    ", "shortcut name", "http:www.google.pt", "")
    End
    End Sub

    Execute :

    Private Sub Command1_Click()
    Shell "C:\windows\documents and settings\user\desktop\shortcutname.LNK"
    End Sub

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