Count files in a folder

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
coperations07Asked:
Who is Participating?
 
sandeep_patelCommented:
Use listbox and it's functions

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

Regards,
Sandeep
0
 
coperations07Author Commented:
That'll get it.

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.