Results 1 to 4 of 4

Thread: How to Sent shortcut to the Desktop?

  1. #1
    etea
    Guest

    Smile How to Sent shortcut to the Desktop?

    How to sent a shortcut to the desktop?
    Thanks for any help! etea

  2. #2
    Matthew Gates
    Guest
    Try this:


    VB Code:
    1. 'STKIT432.dll - VB 32
    2. 'Vb5STKIT.dll - VB 5
    3. 'VB6STKIT.DLL - VB 6
    4.  
    5.  
    6. Private Declare Function fCreateShellLink Lib "STKIT432.DLL" _
    7. (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, _
    8. ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As _
    9. Long
    10.  
    11.  
    12. Private Sub Command1_Click()
    13.      fCreateShellLink "..\..\Desktop", "Shortcut to My Program", "C:\MyProg\MyProg.exe", ""
    14. End Sub

  3. #3
    etea
    Guest

    Smile Thank you!

    THank you!
    Do you have another method to sent shortcut to the desktop?

  4. #4
    Matthew Gates
    Guest
    Why would you need another method? Is this method not good enough?

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