System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(@"C:\"); String name = info.GetFiles("*.jpg").OrderBy(x => x.LastWriteTime).First().Name;