Recent files in directory

recent directory.xaml (6.8 KB)

Using this code I was able to get number of files which are created on today’s date, But I want only one file which is created recently.
For example: today there are 2 files in particular directory, I need only one file which is created recently, Not both the files.


Hi @hemanth_chinna,recent directory.xaml (8.4 KB)


Refer the below xaml file.

@arivu96 I would really appreciate if you could explain what the code is exactly doing and what methods you used, and where I can read more about them.

Thank you :slight_smile:

For example " D:\RPA - Practice" in this directory files will be created daily. So bot need to identify which file is created today depending on today’s date and also it need to identify which file is created recently and it need to ignore the remaining files which are created today.

1 Like

@arivu96 thank you for the solution, I had the same thing to do and your code was really helpful.
I need one more help, I am getting all the file names in the Output panel, but I am unable to extract it in notepad.i need the Output result in UiPath in Excel or notepad…