llmclaughlin
Programmer
Not sure what I need to include to make this work. WshShell.SpecialFolders has the blue line under it stating "Reference to a non-shared member requires an object reference. I added a reference to Microsoft Scripting to the project and I Import IWshRuntimeLibrary.
Dim DesktopDir As String = _
CType(WshShell.SpecialFolders.Item("Desktop"), String)
Dim shortCut As IWshRuntimeLibrary.IWshShortcut
' short cut files have a .lnk extension
shortCut = CType(WshShell.CreateShortcut(DesktopDir & _
"\QPMSOffice.lnk"), _
IWshRuntimeLibrary.IWshShortcut)
Any help appreciated
Louie
Dim DesktopDir As String = _
CType(WshShell.SpecialFolders.Item("Desktop"), String)
Dim shortCut As IWshRuntimeLibrary.IWshShortcut
' short cut files have a .lnk extension
shortCut = CType(WshShell.CreateShortcut(DesktopDir & _
"\QPMSOffice.lnk"), _
IWshRuntimeLibrary.IWshShortcut)
Any help appreciated
Louie