• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

c# File System method - GetFolderFileCount()

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
John500
Asked:
John500
2 Solutions
 
Bruce_1975Commented:
System.IO.Directory.GetFiles(string);  returns a list of all files

Regards,
Bruce
0
 
burakiewiczCommented:
System.IO;

Directory.GetFiles(strPath).Length
0
 
John500Author Commented:
Thanks for the help!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now