Results 1 to 2 of 2

Thread: add/remove program to startup folder using code

  1. #1
    Guest
    anyone know how to create a short cut to my program in the startup folder, and be able to remove it, using vb code.

    my prog is going to be like the windows welcome screen at first boot.

    cheers

    matt

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Lightbulb 2 ideas for u

    you could add a link to the registry in this -->
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    key
    like a string called "Myapp" with the location of ur program as its value.

    or you could create a shortcut, in the startup folder using the api function
    Code:
    Declare Function fCreateShellLink Lib "STKIT432.DLL" _
    (ByVal lpstrFolderName as String, ByVal lpstrLinkName _
    as String, ByVal lpstrLinkPath as String, ByVal _
    lpstrLinkArgs as String) As Long
    or just go to
    shortcut tutorial


    good luck

    [Edited by da_silvy on 04-30-2000 at 10:04 PM]

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