Counting Files In a Folder

Hello,
I’m finishing my Robot, and i’ saving all the reports it sends during the week by mail to Costumer Service in a Backup Folder.
Every Friday, at 06:00 P.M, the Robot deletes all the files, and here is my question, I need to count all the files in backup folder and send a mail to Costumer Service, with the total files.
How do i do it?
I could use some help here.
Thank you all.

@jose.p.mendes - Like this…

image

FileNames is of variable type string Array

Hi @jose.p.mendes
You can u this

Directory.GetFiles(filepath).Count

Thank you very much.

Thank you very much. :slight_smile:

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