for every one hour a log file will be created in a folder,need to pick up latest created log file
In Manage Packages search for file and install the package like in the picture below:
After this you will have another package called UiPathTeam inside the activities panel, just expand it and you will find the activity you’re looking for, using it is very easy, just place your path in it a leave the FilePattern to “*” and you should be good to go :
Alternatively, you can check the solution from the below thread:
Here is a detailed article on that
and if I would like to copy file last time from this activity how to do that? please advise me
did u mean creationtime?
@NIVED_NAMBIAR I mean after create activity : directory.GetFiles().OrderByDescending(Function(file) file.LastWriteTime).First()
and I want to copy file last time to new folder
copy only file last time
Below expression will give the file location that you are looking for
****If i would like to save file only last date modify to new folder . how to do that?
#Thanks for considering my request.
Use Move File Activity for moving file.
While using this activity put above expression in From property.