counting files on a drive

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 25
Reputation: acezrwild817 is an unknown quantity at this point 
Solved Threads: 1
acezrwild817 acezrwild817 is offline Offline
Light Poster

counting files on a drive

 
0
  #1
Apr 3rd, 2006
What is the fastest way to get a total of the files on a given drive using C#? I have been thinking about using a seperate thread, but I would have to wait too long for it to count every file. Is there a faster way than counting each file one by one?
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: counting files on a drive

 
0
  #2
Apr 5th, 2006
Hi,

Short answer, "no, there isn't". Long answer, you might consider using Indexing Service of 2000/XP or if you can access FAT of FAT or MFT of NTFS you might process that data structure.

Loren Soth
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC