Ich möchte gerne von Visual Basic aus eine Verknüpfung (.lnk) ausführen. Die Registry hilft mir nicht weiter, weil es dort in einem CLSID-Zweig endet (
Hallo Jan
Mit folgendem API kannst Du einen „normalen“
Link ausführen. Einen spez. Link wie z.B. aus der Systemsteuerung funktioniert mit diser Prozedur nicht. Falls Du einen solchen Link starten möchtest, dann schreib mir doch ein Mail…
'API
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
Public Function Win32Keyword(ByVal URL As String) As Long
ShellExecute 0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus
End Function
Sub Main()
Win32Keyword („c:\Microsoft Word.lnk“)
End Sub