Hi there,

my first post on this forum.

I hope someone can help me with this 'little' problem.

I am trying to open a file from a tfp server. Problem is that the last part of the file is random (random date (yyyymmdd) followed by (hhmmss)).

An example of a file name could be:
20100721-EPIPDG-20100722164050.csv

Another example is
20100718-EPIPDG-20100720164327.csv

The first part of the file is always equal to the date in question (there can be multiple files per date, but I want to open the newest of the files then) followed by -EPIPDG-, whereas the last part of the file is the time stamp of the file (when it was added to the ftp server). This last part is completely random and can be any day and time.

Can anyone help me writing a code for this? Using an asterisk in the file name doesn't seem to do the trick, unfortunately.