Path Too Long Error Message When Exceeding MAX_PATHLast reviewed: February 2, 1998Article ID: Q177665 |
The information in this article applies to:
SYMPTOMWindows 95 and Windows NT 4.0 clients can expand a server directory structure beyond MAX_PATH (256 characters) by accessing a server share and creating directories and files through the network. As a result, a server running Windows NT 4.0 will return the following error message if the server administrator tries to access these files or directories locally on the server through Windows NT Explorer:
Can’t access this folder. Path is too long.Attempting to create a new folder may return the following error:
Unable to create the folder '<name>'. The filename or extension is too long.A server running Windows NT 3.51 will show unexpected results in File Manager such as a general protection fault (GP fault), WINFILE crash, or display of nonexistent directories. Several tools and programs may also show problems when working with this directory structure that exceeds MAX_PATH.
CAUSEWin32 programs are limited to a 256-character string size limit because of the MAX_PATH variable. Software programs can work around this problem by passing Win32 a path that is MAX_PATH or less. The real underlying path can then be accessed independently of the real length of the path. In this way, a program can access files or directories beyond MAX_PATH on the server.
RESOLUTIONTo resolve problems when the directory structure exceeds MAX_PATH, use either of the following methods:
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe problem described above could not be reproduced with NTBACKUP and files and directories that were beyond the MAX_PATH limit could be backed up and restored successfully.
|
Additional query words: User Interface explore
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |