Different File Send Different E-Mail

I have a process that I want to send e-mail only files containing “XXX” in a folder containing many files. I just couldn’t do it. Can you help? Thank you for your support and cooperation.

Hi,

How about the following?

System.IO.Directory.GetFiles("yourFolder","*XXX*")

note: arrFiles is String Array type.

If it’s necessary to use complex condition, LINQ will help you.

Regards,

Where am I making a mistake? The flower bracket results still don’t work.

Hi,

Can you check variable type of dt_akdeniz? It should be string array type.

Regards,

Thanks a lot @Yoichi :wink:

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