Home All Groups Group Topic Archive Search About
Author
23 Apr 2007 3:32 PM
AVL
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.....
Author
23 Apr 2007 5:19 PM
Alex Meleta
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:***@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.....
Are all your drivers up to date? click for free checkup

Author
23 Apr 2007 8:35 PM
Andy
On Apr 23, 1:19 pm, "Alex Meleta" <amel***@gmail.com> wrote:
> 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.

Bookmark and Share