Looking for a specific file to only display in the assign activity here is my code

Hi,
i am looking to display in a directory only the files with -invoice.pdf
As far I succeed with this code to list all files. But how is the full code for only the invoice.pdf should be displayed

Directory.GetFiles(“C:\Users\ext-ikava\Desktop\unziped”,".",SearchOption.AllDirectories)

image

give a try on

Directory.GetFiles("C:\Users\ext-ikava\Desktop\unziped","*-invoice.pdf ",SearchOption.AllDirectories)

1 Like

worked thanks alot

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