File Extension

  • Thread starter Thread starter wagon
  • Start date Start date
W

wagon

Is there a funciton to get a file extension. I tried using instr rev
looking for a period under file name but it was not reliable because
sometimes the extension is less then three characters long and
sometime a folder has periods in it
 
Is there a funciton to get a file extension. I tried using instr rev
looking for a period under file name but it was not reliable because
sometimes the extension is less then three characters long and
sometime a folder has periods in it

There's a whole lot of APIs that can be used, on top of string functions
that can (for example), extract the characters AFTER the LAST period.

You are best advised to address this to a programming newsgroup related
to your programming language.
 
Is there a funciton to get a file extension. I tried using instr rev
looking for a period under file name but it was not reliable because
sometimes the extension is less then three characters long and
sometime a folder has periods in it

Get in what sense? You can set File Explorer to show file extensions and
look that way- have you done that?
 
Back
Top