How to count the number of PDFs in a folder

Hi all,

I would like to count the number of PDFs present in a folder. How do I do so?

Hi,

How about the following expression?

System.IO.Directory.GetFiles(yourFolder,"*.pdf").Count

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.