Solved

Count files in a folder

Posted on 2008-10-17
2
439 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deletiā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

747 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

8 Experts available now in Live!

Get 1:1 Help Now