Results 1 to 2 of 2

Thread: File Type : SHORTCUT !

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    4
    How can it be created a SHORTCUT TYPE FILE from VB code !
    How can I post an aplication in Quick Launch taskbar !

    Thank you.

  2. #2
    Guest
    To create a shortcut in the Quick Launch menu:

    Code:
    'In Visual Basic 5.0, change Stkit432.dll in the following
    'statement to Vb5stkit.dll.  Stkit432.dll is for Visual Basic 4.0
    'For VB6, change it to VB6STKIT.DLL
    
    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()
        Dim lReturn As Long
    
        lReturn = fCreateShellLink("", "Shortcut to MyProg", _
        "c:\myprog\myprog.exe", "")
    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