How can I add different validation of a document extension, if I´m using GetFiles?

Hi @dulce.santacruz

How about this expression

Directory.GetFiles(Environment.CurrentDirectory+"\WordPdf\","*.*",SearchOption.AllDirectories)

SearchOption.AllDirectories - Used for searching all the directories in the mentioned folder path

image

Check out the tutorial

Regards
Gokul

1 Like