Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
643 views

IShellLinkW::GetPath( SLGP_RAWPATH ) does not return the 'raw' target of a lnk file

I noticed that the method IShellLinkW::GetPath returns an empty string if the target of a shortcut points to a special folder, like 'My PC', or a Control Panel applet. Sample code ' CLSID_ShellLink ...
ElektroStudios's user avatar
2 votes
2 answers
8k views

Create Shortcut in StartUp folder (VB.NET)

I have this code and it's giving troubles: Imports IWshRuntimeLibrary Imports Shell32 Public Sub CreateShortcutInStartUp(ByVal Descrip As String) Dim WshShell As WshShell = New WshShell() ...
soulblazer's user avatar
  • 1,218
2 votes
2 answers
7k views

How can I find the destination of a .lnk file in vb.net [closed]

I made a explorer.exe clone, with a treeview and a listview etc. Now I need to handle clicking a .lnk file, so I need the destination path of a .lnk file..
Dee's user avatar
  • 67
2 votes
2 answers
3k views

VB.NET / C# code to access target path of link (lnk) files produces some wrong paths

I found this code: Public Shared Function GetLnkTarget(ByVal lnkPath As String) As String Dim shl = New Shell32.Shell() ' Move this to class scope lnkPath = System.IO.Path.GetFullPath(...
user670186's user avatar
  • 2,810