Diferent check pdf

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

@fabiosantos_99, You can use

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

Regards,
Dom :slight_smile:

1 Like

Thanks :slight_smile: it worked.