Getting count of files modified today and of particular file type


I have the below which gets files modified today. How do i modify it to get only .OUT files?

directory.GetFiles(“FILEPATH”).where(Function(x) New FileInfo(x).LastWriteTime.Date =

One option could be:
directory.GetFiles(YourFilePath,"*.OUT").where(Function(x) New FileInfo(x).LastWriteTime.Date =

Or go for
new DirectoryInfo(YourFilePath).GetFiles("*.xaml").Where(Function (x) x.LastWriteTime.Date =


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.