Recent files in directory

studio

#1

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.


#2

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

Regards,
Arivu

Refer the below xaml file.


How to read and write file name with current date
#3

@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:


#4

@RishiVC1
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.