See DirectoryInfo and such classes.
There's the example of scanning directories using recursion:
http://www.codeproject.com/useritems/ScanDirectory.asp
WBR, Alex Meleta
Blog: http://devkids.blogspot.com
-----Original Message-----
From: AVL [mailto:AVL@discussions.microsoft.com]
Posted At: Montag, 23. April 2007 19:32
Posted To: microsoft.public.dotnet.framework
Conversation: reading files
Subject: reading files
Hi,
Need some info....
I want to read all the folders and files present in my C drive..in .net
2.0
how to we acheive it?
Mu purpose is to display all teh files ina given drive...any good
samples.....
Andy - 23 Apr 2007 21:35 GMT
> See DirectoryInfo and such classes.
> There's the example of scanning directories using recursion:http://www.codeproject.com/useritems/ScanDirectory.asp
To add to that, you may want to consider using the BackgroundWorker
component, so that your UI stays nice and responsive. This is one of
those operations that can lock the UI thead easily.