Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

desktop shortcut

Status
Not open for further replies.

lixtifur36

Programmer
May 27, 2005
5
US
Dim mExeFileSpec As String
Dim mDestPath As String
I am trying to make a setup program for my Access app. I need some help with puting a shortcut on the destop. My code is as folows:

Private Declare Function OSfCreateShellLink Lib "vb6stkit.dll" Alias "fCreateShellLink" _
(ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, _
ByVal lpstrLinkPath As String, ByVal lpstrLinkArguments As String, _
ByVal fPrivate As Long, ByVal sParent As String) As Long

Dim mArgList As String
Dim mTitleRef As String
Dim mPrivate As Boolean
Dim mParent As String
On Error GoTo a
mExeFileSpec = drv + "\OTC Trade Manager\OTC Trade Manager.mdb"
mArgList = ""
mDestPath = "..\..\Desktop"
mTitleRef = "OTC TradeManager"
mPrivate = True
mParent = "$(Programs)"
OSfCreateShellLink mDestPath, mTitleRef, mExeFileSpec, mArgList, mPrivate, mParent

Can anyone please help.
Thank you
 
mExeFileSpec = """" & drv & "\OTC Trade Manager\OTC Trade Manager.mdb"""

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top