INFO: Filenames Ending with Space or Period Not Supported

This article was previously published under Q115827
This article has been archived. It is offered "as is" and will no longer be updated.
CreateFile() removes trailing spaces and periods from file and directorynames. This is done for compatibility with the FAT and HPFS file systems.

Problems can arise when a Macintosh client creates a file on a Windows NTserver. The code to remove trailing spaces and periods is not carried outand the Macintosh user gets the correctly punctuated filename. The Win32APIs FindFirstFile() and FindNextFile() return a filename that ends in aspace or in a period; however, there is no way to create or open the fileusing the Win32 API.

Applications such as File Manager and Backup check to see whether thefilename ends with a space or period. If the filename does end in a spaceor a period, then File Manager and Backup use the alternative name found inWIN32_FIND_DATA.cAlternateFileName to create and open the file. Therefore,the full filename is lost.
3.10 3.50 4.00 winfile ntbackup

Article ID: 115827 - Last Review: 02/28/2014 07:55:07 - Revision: 3.2

  • Microsoft Win32 Application Programming Interface
  • kbnosurvey kbarchive kbinfo KB115827