Files$() Truncates Paths Longer Than 255 Characters

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.


Additional query words: 6.0 ntword wordnt macro word6 winword 7.0 word95 word7

Keywords :
Version : WINDOWS:6.0,6.0a,6.0c,7.0
Platform : WINDOWS
Issue type :


Last Reviewed: December 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.