Hello all.
I am trying to get the latest file and using the below code.
new DirectoryInfo(“C:\Users\Dinesh\Documents\UiPath\Excel_Automation\Input\Log”).GetFiles().OrderByDescending(Function(f) f.LastWriteTime).First()
But I am not getting the wrong file.
I am expecting the file 20230206_203506_SRC_PARK_ACC_FV60_Result.log from the above screenshot.