{
return (from x in Directory.GetLogicalDrives()
select new DirectoryInfo(x)).ToList();
}
public static IList
{
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
Mamta MPosted Feb 28, 2012, 12:33 AM
http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx
http://www.daniweb.com/software-development/csharp/code/350113