Looping through files

Hi James,

You could get the filelist with Directory.GetFiles(string path, string searchPattern) - it supports * and ? wildcards:

string() pdfList = Directory.GetFIles("D:\myFolder", “Weekly Macro Report*.pdf”)

and then iterate with For/Foreach loop where you will have the ReadPDF activity.

Regards.

7 Likes