|
-
Dec 12th, 1999, 07:46 AM
#1
Thread Starter
Hyperactive Member
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
-
Dec 12th, 1999, 12:52 PM
#2
Addicted Member
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
-
Dec 12th, 1999, 01:38 PM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|