views:

188

answers:

1

How to get the path of recent documents folder using C#?

+17  A: 

See:

System.Environment.SpecialFolder.Recent

So:

DirectoryInfo d = new DirectoryInfo(
    System.Environment.GetFolderPath(Environment.SpecialFolder.Recent)
);
Noon Silk
+1, though the DirectoryInfo thing may be unnecessary if he just needs the path :)
OregonGhost