Solved

Windowss XP - Is there a way to change the MAX_PATH value for pathname/filename?  I want to reduce it to 220 characters.

Posted on 2008-11-03
2
3,509 Views
Last Modified: 2012-05-05
I have a problem accesssing user data that meets the 255 character limit when accessing it via DFS-Root. Adding the DFS-Root path to the file forces the the pathname to exceed 255 characters and can not be accessed or deleted and causes file recovery from shadow copy to fail.

Is there a Group Policy or Registry key I can set/modify?

Thanks.
0
Comment
Question by:CRHSICT
2 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
No. The path length will differ, depending on how you access the file (UNC path, mapped drive, locally).
There is no general 255 character limit, by the way. The NTFS limit is around 32000 characters. It's only an *application* problem; if an application uses the old APIs to access files (and even Explorer.exe and Office 2003 still use them ...), it will indeed not be able to access any path longer than 255 characters. There's no way around this except to shorten the path either by renaming or by accessing it through a mapped drive that's pointing deeper into the folder structure.


0
 

Author Closing Comment

by:CRHSICT
Comment Utility
That's what I thought. As you have correctly surmaized it is Word 2003 that is creating these long file names. I really find it hard to comprehend why Explorer does not support 32kb pathname as it is the driving force behind Windows. Try shutting down Explorer in Task Manager then try accessing your Desktop!
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now