I wish to get the lastest written files from a directory and their extentions.
An example of what file that could exist in the directory (with their creation dates):
2009-10-20T07:00:00.000 filename1.mp4
2009-10-20T07:00:01.000 filename1_0.mp4
2009-10-20T07:00:02.000 filename1_1.mp4
2009-10-20T07:00:00.000 filename1.wmv
2009-10-20T07:10:00.000 filename2.mp4
2009-10-20T07:10:00.000 filename2.wmv
Note that the file named 'filename1' in mp4 format has 3 versions sequentially numbered. I'm looking for the files named 'filename1' with to get the following result back (in no particular order):
filename1_1.mp4
filename1.wmv
because these file are the latest created with two extensions but both have the filename, 'filename1', I wish.