I try to resolve the paths of shell links, which are contained in the "Recent Documents" folder in Windows 7. I used the code posted here (Answer No 3) How to resolve a .lnk in c#. But the method ResolveShortcut
is not able to determine the path of some files (e.g. many .txt-files). The same code works perfectly under Windows XP.
Asked
Active
Viewed 335 times
1
1 Answers
1
I just downloaded, upgraded to 2010 and ran this sample on a Win7 system without any problem without changing anything whatsoever.
-
I noticed that one needs to run the code in a WinForms or WPF app. So that was the reason that my code did not work. – drvj Apr 28 '11 at 15:35