I have a 3rd party program that creates JPG files with random names, and I would like to find the JPG file that was created last. I imagine that I will need to do this by the timestamp/datestamp associated with the JPG? Can anyone tell me the best way to find the last file created using VB6? All of the files are in one directory, and all of the jpegs are in some sort of number format (ex. 1.jpg or 2351.jpg) but not sequential.

Thanks