|
||||
fCreateShellLinkCategory: SystemHits: 4421 Rating: (2.75) votes 1159
Rate: 1-star 2-stars 3-stars 4-stars 5-stars
API Explanation
The fCreateShellLink creates a shell link Parameter Information Declare Function fCreateShellLink Lib "VB5STKIT.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName _ As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long · lpstrFolderName folder where to create the link · lpstrLinkName text caption for the link · lpstrLinkPath full path to the target of the link · lpstrLinkArguments command-line arguments for the link
Code
Private Declare Function fCreateShellLink Lib "VB5STKIT.DLL" (ByVal lpstrFolderName As String, ByVal _ lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
Private Sub Form_Load() ' -> code by Raist Lin 'Create a shell link on your desktop lngresult = fCreateShellLink("..\\..\\Desktop", "LINK", "C:\\myfile.exe", "") End Sub |