Solved

c# File System method - GetFolderFileCount()

Posted on 2008-06-26
3
227 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

15 Experts available now in Live!

Get 1:1 Help Now