Hi @Henson_Ibon … Please try the below code…
StrArrFirstFour = Directory.GetFiles("YourFolderPath").OrderByDescending(Function(d) New FileInfo(d).LastWriteTime).take(4).ToArray
Here StrArrFirstFour is StringArray
Hope this helps…
Hi @Henson_Ibon … Please try the below code…
StrArrFirstFour = Directory.GetFiles("YourFolderPath").OrderByDescending(Function(d) New FileInfo(d).LastWriteTime).take(4).ToArray
Here StrArrFirstFour is StringArray
Hope this helps…