Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi !
how to show folders in a drive with details ? ? ? ?
Posted
Updated 10-Sep-13 3:27am
v2
Comments
[no name] 10-Sep-13 8:46am    
You would write some code....
Menon Santosh 10-Sep-13 9:02am    
elaborate your question
Prasad Khandekar 10-Sep-13 9:11am    
Wrong classification tag as well.

1 solution

Use DirectoryInfo's GetDirectories to get a list of directories

Here's a simple example:
C#
// Make a reference to a directory.
DirectoryInfo di = new DirectoryInfo(@"c:\");

// Get a reference to each directory in that directory.
DirectoryInfo[] diArr = di.GetDirectories();

// Display the names of the directories. 
foreach (DirectoryInfo dri in diArr)
{
  // Do your stuff with the information of each directory
  Console.WriteLine(dri.Name);
  Console.WriteLine(dri.CreationTime.ToString());
  // ...
  // ...
  
}

Cheers,
Edo
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900