Solved

Count files in a folder

Posted on 2008-10-17
2
444 Views
Last Modified: 2013-12-26
Hi,
PB 10.5
How can I get a count of how many text files are contained in a certain folder on my C:/ drive?

thx,
Dave
0
Comment
Question by:coperations07
2 Comments
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 350 total points
ID: 22760717
Use listbox and it's functions

long ll_counts
lb_files.DirList("C:\EMPLOYEE\*.TXT", 0)
ll_counts = lb_files.totalitems()

Regards,
Sandeep
0
 

Author Comment

by:coperations07
ID: 22767075
That'll get it.

Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Safearray problem c++ 4 88
NetBeans and configurationfiles 2 58
maven import project error 7 137
How do I return the Android Studio to its default project window settings? 6 78
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

828 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