Microsoft KB Archive/128370

= PC MAPI: MAPISendDocuments Removes Spaces in Filenames =

Article ID: 128370

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail for PC Networks 3.0
 * Microsoft Mail for PC Networks 3.2

-



This article was previously published under Q128370



SYMPTOMS
The Simple Messaging Application Programming Interface (MAPI) function MAPISendDocuments, which is included with Microsoft Mail for PC Networks, handles file names with space characters incorrectly. File names with spaces are fairly common on advanced file systems, such as NTFS. MAPISendDocuments actually removes the spaces and truncates the file name.

When you attempt to pass a file name with spaces in it MAPISendDocuments will display the following error,

The file "XXXXXXXX" could not be accessed

where XXXXXXX is the file name (with spaces omitted).



WORKAROUND
All files passed to MAPISendDocuments should not contain space characters. If you do have some files with spaces, rename the file to remove the spaces.

NOTE: Some development tools have functions that will convert the filename to a standard MS-DOS 8.3 format. In Microsoft VC++ version 2.0, the function GetShortPathName will convert the filename.



STATUS
Microsoft has confirmed this to be a problem with versions 3.0 and 3.2 of Microsoft Mail for PC Networks. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: 3.00 3.20

Keywords: KB128370

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.