Get the last file by Name
Posted on 2011-09-07
I have some back up files that are arranged in a directory by filename and date. for Instance, I have
I want to get the last file created by the filename which would be BU_file_090420112100 by reading he filename and not the file attributes. The attribute create date might work most of the time but the only 100% gauraunteed wa to handle is to use the file name to retreive. can someone help me on how to accomplish?