|
-
Mar 28th, 2007, 10:30 AM
#1
Thread Starter
Member
A question about shortcuts
Hi
I have a small question about creating shortcuts:
How can I create a shortcut for a specify folder using
my specify icon on my desktop ?
I really need your help in this one
Best Regards.
Always New I Never Belonged In This World .. I Wasn't Made For This
But I'LL Never Forget Those Who Betrayed Me .... And Those Who Never Failed My Trust.
 Visual Basic 6.0 : The Choice of The Professional 
-
Mar 28th, 2007, 10:48 AM
#2
Member
Re: A question about shortcuts
try this
Create:
Private Declare Function fCreateShellLink Lib "Vb6stkit.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
Private Sub Command3_Click()
Dim lReturn As Long
lReturn = fCreateShellLink("C:\windows\documents and settings\user\desktop\
", "shortcut name", "http:www.google.pt", "")
End
End Sub
Execute :
Private Sub Command1_Click()
Shell "C:\windows\documents and settings\user\desktop\shortcutname.LNK"
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|