Re: Finding file extension

Combining the above you probably want to build upon something like:You probably want to deal with case when there is no suffix ($BASE==$FNAME)

fwiw, I _love_ file extentions, as a hint such as used in OpenVMS. In Windows they are followed overzealously imho. If I want to call a text file .com no 'security' scan should barf and if I have an executable file called .txt then a security scan should still find it.