Files$() Truncates Paths Longer Than 255 Characters

Last reviewed: August 5, 1997
Article ID: Q121934
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

The WordBasic Files$() function truncates file paths that are longer than 255 characters.

CAUSE

The internal buffer used by the Files$() WordBasic function is limited in size to 255 characters. Any path that is longer than 255 characters will be truncated.

WORKAROUNDS

To prevent the truncation of the file paths, use one of the following methods:

  • Move the location of the files being used

    -or-

  • Shorten the directory names to reduce the length of the path to fewer than 255 characters.


KBCategory: kbprg kbmacro
KBSubcategory:
Additional reference words: 6.0 ntword wordnt macro word6 winword
6.0a 6.0c 7.0 word95 word7

Keywords : kbmacro kbprg
Version : 6.0 6.0a 6.0c 7.0
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.