Hi,
I need to extract the file extension from a full file name. Unfortunaltly some of the file names have multiple . in the file name e.g.
C:\Filename.test.dvd.doc
So in the example above I need to extract "doc". Also the length of the file extension varies so I can not just look for the last three characters.
Ideally I need to find the last "." in the string and extract all data to the right of the last "."
Any ideas?
Thanks in advance,
Daigriff
I need to extract the file extension from a full file name. Unfortunaltly some of the file names have multiple . in the file name e.g.
C:\Filename.test.dvd.doc
So in the example above I need to extract "doc". Also the length of the file extension varies so I can not just look for the last three characters.
Ideally I need to find the last "." in the string and extract all data to the right of the last "."
Any ideas?
Thanks in advance,
Daigriff