Solved

c# File System method - GetFolderFileCount()

Posted on 2008-06-26
3
228 Views
Last Modified: 2010-04-15
Greetings:

I'm hoping to get code and supporting namespace that will execute the following routine:

GetFolderFileCount()

For example:

using ??

void CheckFileCount()
{
...                                    // necessary variables like 'string FilePath'
GetFolderFileCount()      // correct call
return;
}

Thanks
0
Comment
Question by:John500
3 Comments
 
LVL 6

Accepted Solution

by:
Bruce_1975 earned 250 total points
ID: 21876505
System.IO.Directory.GetFiles(string);  returns a list of all files

Regards,
Bruce
0
 
LVL 16

Assisted Solution

by:burakiewicz
burakiewicz earned 250 total points
ID: 21876518
System.IO;

Directory.GetFiles(strPath).Length
0
 

Author Comment

by:John500
ID: 21883028
Thanks for the help!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now