All Questions
4 questions
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 ...
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()
...
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..
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(...