For example, I have following files in a folder
aaa001.txt
aaa002.txt
aaa003.txt
bbb001.txt
bbb002.txt
...
Is there any way I can count the number of files starting with "aaa" in this folder?
I can do Dir("*\aaa*.txt")
in a loop while counting. But I'm wondering if there is a more efficient way of doing it.
Thanks.