[RESOLVED] once again how can i open a *.lnk
Hello
:confused: :confused: :confused: :confused: :confused: :confused: :confused:
please, i know they are many threads which deals about the running of *.lnk files in VB 6, but some are to difficult for me, or they are not working.
please when someone knows the solution of this problem post it here, it will help many people ;)
thanx for any answer which moves this problem forward or solve it
many thanx :wave:
BlueDragon
Re: once again how i can open a *.lnk
There are 1,643,453 threads dealing with lnk files :D
Just ShellExecute the lnk file without a verb action.
VB Code:
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
Private Const SW_SHOWNORMAL As Long = 1
Private Sub Command1_Click()
ShellExecute 0&, vbNullString, "C:\VBForums.lnk", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
Re: once again how can i open a *.lnk
Thanx!!!
my app is working now ;)
but it is only the first part ;)
thanx!!!