PDA

Click to See Complete Forum and Search --> : How to creat a shortcut of my .exe file and add it to Start up folder??


kourosh
Dec 12th, 1999, 06:46 AM
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

Keiko
Dec 12th, 1999, 11:52 AM
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

kourosh
Dec 12th, 1999, 12:38 PM
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