I have been trying to get files in the same folder but have dynamic names.
For example, i need to get 3 pdf files from the same folder which contains “AB1C_01” as shown below.
Is there a way that I can get all files containing “AB1C_01”?
Thank you very much for your help in advance!
Can you try the following expression?
files = System.IO.Directory.GetFiles("C:\Users\CO","*AB1C_01*")
note: files is String array type.
You can use the For each file in folder activity
CurrentFile.Tostring will get the file path
Welcome to Uipath community
How about this expression?
For detail check out this tutorial