Windows explorer using WPF Application
public static IList<DirectoryInfo> GetRootDirectories()
{
return (from x in Directory.GetLogicalDrives()
select new DirectoryInfo(x)).ToList();
}
public static IList<DriveInfo> GetRootDirectories()
{
return (from x in DriveInfo.GetDrives() select x).ToList();
// return null;
}
By using one of the code above i am able to acces all drives but i want to acces only C drive result like "Desktop", "Documents", "Picture", "Music", "Videos", "Downloads", "Recent","Network" plz help