Results 1 to 3 of 3

Thread: How to creat a shortcut of my .exe file and add it to Start up folder??

  1. #1

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Post

    Hi, I want my program to be able to add a shortcut of it self to the windows start up folder so if the user want the program to start with windows just click on the option and program add a shortcut of its .exe file to the start up. I know you people know alot about API but I know nothing and I really like to learn I just havn't got the time yet. Anyway if there is a way with out using API please tell me I really appreciate your help.

    Thanks in advance

  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    Post



    Hi kourosh,

    If you have no time to learn it's ok. You can use it first and learn later.

    ------------------
    Option Explicit
    Declare Function OSfCreateShellLink Lib "VB5STKIT.DLL" Alias "fCreateShellLink" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArguments As String) As Long

    Private Sub CreateShellLink()
    Call OSfCreateShellLink("", "Research", "c:\windows\desktop\rnd\rnd.exe", "" & "")
    End Sub

    You can see the meaning of the parameters from its declaration.

    'cos I have no time to explain, I have to go now.


    Does it help ?

    Regards

  3. #3

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Post

    Thanks alot it does work. Can you tell me what is the best way to learn API?? I have tried web sites but non of them have enough information. What book do you think is the best to learn API. Thanks alot

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