Windows 7 introduced a Recent Places special folder in Explorer which shows you the recently accessed folders. This folder includes only folders, i.e. it excludes files.
This is different from the Environment.SpecialFolder.Recent folder and as far as I can see both CSIDL and KNOWNFOLDER don’t list a Recent Places folder.
How can I get the contents of the Recent Places special folder using C#?
As there doesn’t seem to be any direct access to this ‘virtual folder’ I used a workaround.
where
LinkHelperis taken from this answer: How to resolve a .lnk in C#EDIT: changed from using file attributes to Directory.Exists as FileAttribute.Directory flag doesn’t seem to be always set correctly.