Diferent check pdf


#1

I´ve found a problen on checking diferent tipes of pdf´s, I use " email(0).attachments(0).name ", and it writes a excel and a .txt with .pdf at the end of the name of each: txt and excel.

How do I write the name of each without the .pdf


#2

@fabiosantos_99, You can use

Path.GetFileNameWithoutExtension(email(0).attachments(0).name)

Regards,
Dom :slight_smile:


#3

Thanks :slight_smile: it worked.