Hi!
When you don't expect usage of UNC (like '\\CompName\ShareName\...) and don't expect file names with multiple extensions (like FileName.FileName.FileName.Ext), JustExt function works like a charm. I afrain this function just forwards call to Windows API funtions, so I doubt API will help here.
If you really need such reliability, I can just now write simple algorithms for these functions using VFP code. Probably you can do this too ;))
>I finally found JUSTFNAME,JUSTEXT, etc, but Hacker's Guide is kind of luke warm on them, claiming they aren't foolproof with respect to more complex (but legal) filenames.
>
>Are there more reliable VFP or API functions that do the same thing?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.