How to use Directory.Getfiles ? Help

Hi,everyone

i want to GetFiles “Name,Date,.txt” How to Type in Uipath

This Below
Getfile Name and .txt

VBA
QueryMobile" & CStr(Format(DateAdd(“M”, 0, Now), “dmyyyy”)) & “.txt”, False)

Thank You.

HI @punnipah

What is your file name

if it is something like query_something.txt

Try like below

Directory.GetFiles("Your path","query*.txt")

Regards
Sudharsan

1 Like

That Rigt Thank you

1 Like

Hi,everyone

i want to GetFiles “Name,Date,.txt” How to Type in Uipath

This Below
Getfile Name and .txt

VBA
QueryMobile" & CStr(Format(DateAdd(“M”, 0, Now), “dmyyyy”)) & “.txt”, False)

Thank You.

Duplicate Topic of How to use Directory.Getfiles ? Help

1 Like

Hi @punnipah

You can try like the below expression

Directory.GetFiles("Your folderpath","Filename*.txt")

Regards
Gokul

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