Get the download file path details

Hi everyone,
I want to get path file when I just download. (file nearest)

Thank,
Henry!

FilePath=Directory.GetFiles(FolderPath,"*.xlsx",SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)

This will get the latest file in a specified folderPath

2 Likes

Thank jothyprasanth.m!