Hey guys, I am trying to open up a folder and find all files of a certain type that are newer than a certain date/time.
I have this code here which gets all the files of the specified type, but I am not sure how to get it to also read the date/time of the file and only add ones that are newer than a specified date/time. Talking about the Creation date/time or last modified date/time whichever.
Any idea for an ellegant way of doing this?Code:DirectoryInfo di = new DirectoryInfo(folderpath); FileInfo[] rgFiles = di.GetFiles("*.env");//where date/time newer than 7/07/2007 5:34 PM
Thanks!![]()





Reply With Quote