Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counting files in a directory

Status
Not open for further replies.

farkwit

Programmer
Aug 7, 2000
1
GB
Is there any way to count the number of files that exist in a folder/directory and return the value as an integer in *VB3*?<br>Please help, all suggestions welcome!
 
hey i dont know if your still looking for help but first make a file list box and hide it some where in the form

file1 = &quot;&quot; <--- put directory in quotes
num = file1.ListCount <------ num represents the count of files. thats it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top