I'm trying to run a Shortcut file(ext: "lnk"). I know you can't do this using Shell, but I heard somewhere you can do it with ShellExecute, I tried this:
VB Code:
Public 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 ShellExecute Me.hwnd, "open", App.Path & "\TMP.lnk", vbNullString, vbNullString, SW_SHOWNORMAL
But it didn't work, any suggestions?




Reply With Quote