Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

max length file path in windows

807605Jul 28 2007 — edited Jul 30 2007
I'm working on a program that will work with path lengths greater than 260 chars in window 2003 server.

using the java.io.File class, I've found that functions such as list, lastmodified, length and exists dont work when the path length is over 260 chars.

After researching this problem on the internet, some hits showed that this is an issue called MAX_LENGTH=260

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=399638&SiteID=1

this issue is about the subsystem, the underlying file system is ok to 64k path length. to access the 32bit versions of their own code, they say to put \\?\ before the path.

http://support.softartisans.com/Forums/PrintPost.aspx?PostID=3734

trying this fixes the list function, partially fixes the lastmodified function, but doesnt fix the length function.

am I on the right track? is there a better way of doing this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2007
Added on Jul 28 2007
1 comment
541 views