I am using visual basic and I want to count all the files that exist in a folder and in its subfolders.. I tried this :
Dim counter = My.Computer.FileSystem.GetFiles("C:\Folder")
MsgBox("number of files is " & CStr(counter.Count))
but it only counts files in the C:\Folder and not in C:\Folder\Sub-Folder\AnotherSubFolder What should I do? Thank's for help!