Results 1 to 3 of 3

Thread: Creating Shortcuts

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    MN, USA
    Posts
    25

    Post

    hello!
    I need to create a shortcut to my program in "windows\startmenu\startup" and on the desktop, but i don't know hot to create a shortcut. Please help.

    thank you for your time!

  2. #2
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Use fCreateShellLink (you need Vb5stkit.dll in the directory of your app)

    Code:
    Private Declare Function fCreateShellLink Lib "Vb5stkit.dll" (ByVal _
           lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal _
           lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
    
    
    'Function that creates shell links
            lReturn = fCreateShellLink("..\startup", sCaption, Text1.text, "")

  3. #3
    New Member
    Join Date
    Jun 1999
    Posts
    15
    Check out http://www.planet-source-code.com/vb...xtCodeId=7349.
    There is code from the VB6 Pro CD that creates shortcuts.

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