Knowledge Base

ShellBrowser .NET Components

Question / Problem

How can I retrieve the target of a link when I use the ShellBrowser component?

Answer / Solution

Just call the static method string ShellBrowser.GetLinkTarget(string shortcut) and it will resolve the link. If it is not a link file (ie. a normal file or folder) it will return the empty string "", and null on error.