Hi all
I was using this fuction to get the latest downloaded file - Directory.GetFiles(“C:\Users\User\Downloads”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
It was working fine until I downloaded the Microsoft 365 package (not sure if that’s related somehow haha but it’s an odd coincidence), now I’m getting this error:
Does anyone know how to fix this please? Or know of a different way to get the latest file downloaded?
Thanks