To search the first period is probably the way it was programmed before long file names. Maybe they forgot to change this when they added long file name support.jb wrote:BTW: There are other programs that do not handle file names with multiple periods correctly. It seems quite a common error to search the first period instead of the last one.
Or maybe it means they simply do not support file names with multiple dots.
Maybe they didn't care.
Or maybe file naming conventions are not very clear. Take these naming conventions at msdn for example. It states:
So periods are allowed in the file name. But it also states:Use any character in the current code page for a name, except characters in the range 0 through 31 or any character explicitly disallowed by the file system. A name can contain characters in the extended character set (128?255). However, it cannot contain the following reserved characters: < > : " / \ |
This is kinda confusing. Would be a lot clearer if they had said: "Use the last period (.) in a directory name or file name to separate the base file name from the extension"Use a period (.) to separate the base file name from the extension in a directory name or file name
Probably this text has its origin in the 8.3 file names era.