I am using C# to access the most recent files on a system and copy them via
Environment.SpecialFolder.Recent
The recent folder in Windows however just creates shortcuts to the actual location of the file. How would one go about copying the file that the shortcut is pointing at as opposed to the shortcut itself?
Many Thanks in advance for any help
I found and altered this code, works for me:
You have to add a reference to the
Microsoft Shell Controls And AutomationCOM object (Shell32.dll) to the project to make this work.