Jump to content

Getting the number of files in a directory


Recommended Posts

I understand that FileFindFirstFile() will return a handle to the files in a directory and FileFindNextFile() is used to access one file at a time. Is there a way to get the number of files in a directory (that match a search string) before processing all the files one-by-one and counting them?

HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/
Link to comment
Share on other sites

I understand that FileFindFirstFile() will return a handle to the files in a directory and FileFindNextFile() is used to access one file at a time. Is there a way to get the number of files in a directory (that match a search string) before processing all the files one-by-one and counting them?

_FileListToArray

When the words fail... music speaks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...