Get Second latest File from Folder

Query = Directory.GetFiles( folderPath ).OrderByDescending(Function(d) New FileInfo(d).CreationTime)

DataType = System.linq.IOrderedEnumerable<System.String>
image

LatestFile = FolderFiles(0)
SecondLatest =FolderFiles(1)

1 Like