Error : Could not find a part of the path

Hi All,

I’m trying to send all File Attachments in Outlook Mail. But I’m getting this below shown Error even though path is correct.

In Files , the Value is Directory.GetFiles(AttachmentPath, “*.xlsx”)

Any help is appreciated.

Thanks in Advance.:slight_smile:

Check if these thread posts are helping you Invoke code "Could not find a part of the path" - Xaml is in the current folder project - #15 by jonathan_peixoto

@Vaishnav_Tej
PathTest.xaml (4.9 KB)

Explanation.
You are getting list of Excel Files In variable Files from AttachmetPath.
please check you Attachment path is Correct.
It should be like this one ->"C:\Users\raja.arslankhan\Downloads" ->Here I am getting files from download folders.
My Code is working fine.
Thanks

1 Like

@Vaishnav_Tej Thank you so much. Happy Learning

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