You will find the Windows Script Host Object Model near the end of the Project References.
I have updated the code using two parameters. The first parameter is the directory name, and the second is the name of the executable file. I would drop this code into a module.
'=====================================================
Public Sub CreateDeskTopIcon(rStr_DirName As String, rStr_ExeName As String)
Dim lCls_WSHShell As IWshRuntimeLibrary.IWshShell_Class
Dim lCls_WSHShortcut As IWshRuntimeLibrary.IWshShortcut_Class
Dim lStr_FullPathName As String
Dim lStr_DesktopPath As String
Dim lStr_DeskTopIcon As String
rStr_DirName = Trim(rStr_DirName)
If (Right(rStr_DirName, 1) <> "\"

Then
rStr_DirName = rStr_DirName & "\"
End If
rStr_ExeName = Trim(rStr_ExeName)
If (UCase(Right(rStr_ExeName, 4)) = ".EXE"

Then
rStr_ExeName = Left(rStr_ExeName, (Len(rStr_ExeName) - 4))
End If
lStr_FullPathName = rStr_DirName + rStr_ExeName
Set lCls_WSHShell = New IWshRuntimeLibrary.IWshShell_Class
lStr_DesktopPath = lCls_WSHShell.SpecialFolders.Item("Desktop"

lStr_DeskTopIcon = lStr_DesktopPath & "\" & rStr_ExeName & ".lnk"
Set lCls_WSHShortcut = lCls_WSHShell.CreateShortcut(lStr_DeskTopIcon)
With lCls_WSHShortcut
.TargetPath = lCls_WSHShell.ExpandEnvironmentStrings(lStr_FullPathName)
.WorkingDirectory = lCls_WSHShell.ExpandEnvironmentStrings(rStr_DirName)
.WindowStyle = 4
.Save
End With
Set lCls_WSHShortcut = Nothing
Set lCls_WSHShell = Nothing
End Sub
'===========================================
I tested it by placing a button on a form, and what follows is the button click event.
Private Sub cmdDesktop_Click()
CreateDeskTopIcon "c:\vb_projs\LineCount\", "LineCount"
End Sub
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein