Using string manipulation, it should be a cinch.

1. Use InStr() to find the first space ' '
2. Use InStrRev() to find the first period '.'
3. Use the appropriate offsets from 1 and 2

As long as the the filenames all have 3 char extensions you're good to go. If not, then you will have to use slightly different logic on the sending vs. receiving lines. The lines can count backwards.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.