.NET read binary contents of .lnk file
- by Flores
I want to read the binary contents of a .lnk file.
As long as the target of the shortcut (lnk file) exists this works fine with IO.File.ReadAllBytes(string file).
BUT
If the target of the shortcut does not exist (believe me I want this) the method only returns zero's. I guess this is because the OS follows the link and if it does not exist it returns zero's
Is there some way to bypass the fact that the framework follows the target of the .lnk before displaying the contents of the .lnk file?