Thanks LPlates.
I have try this code to open bookmarks, programs, images, ... and it works fine but when I try to open a shortcut it fails (Nothing appears).
----------------------------
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
Dim i As Long
i = ShellExecute(hwnd, "open", "D:\shortcut.lnk", "", "", SW_SHOWNORMAL)
End
End Sub
------------------------
I am using VB6, Windows XP.
Any idea about this?
TIA,
Aki