Extract Files list from Directory /Folder with specific Keyword from file name

Hello,

Here, I am able to get list of all files from the folder location with Assign activity directory.GetFiles(folderloc).
Folderloc= Location of folder.

I have 100 of files with all different kind of Prefix with each file name in one folder.
But I want to do processing only on specific files with Prefix having ABCD.

So, there will be less processing time and output will be delivered in short time

Is there any way to get list of all files with specific keyword from the folders,while extracting GetFiles Listing one very first instance.

Eg

ABCD01.pdf
ABCD02.pdf
XYZK01.pdf
ABCD03.pdf
XYZK02.pdf
ABCD04.pdf
ABCD05.pdf

Here, i need list of files from folder having file name prefix with ABCDxx for my BOT processing.

Thanks
Prashant Patil

2 Likes

@prashant231082

Try this:

 pdfFiles [] = Directory.GetFiles("FolderPath","ABCD*")
9 Likes

Thanks Lakshman. IT Worked :100:
I was able to cut down Processing time from “00:47:00” to “00:15:00”

1 Like

@prashant231082

Glad to help you :grinning:

1 Like

Hi Laksham

Could yo please help me in one more dynamic task
my problem is explained here in post …

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