[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Problem with Big File Name

From: Matthew Sanderson <matthew_at_formtrap.com>
Date: 2005-08-04 07:35:31 CEST

FYI, I just went to a Win2k box and successfully did:

_wfopen(L"\\\\?\\c:\\foo.txt", L"wb")

I also the same thing with lots of subdirs so that the full pathname is
longer than MAX_PATH chars.

Ie, it doesn't appear to matter which particular API (CreateFile/fopen)
you use; you just need:

1. To be using an NT-kernel-based Windows; and
2. To supply the magical '\\?\' prefix; and
3. To be calling the wide (Unicode) version of the API.

The Microsoft Visual C++ help files say this doesn't work on the Windowses
based on the 9x kernel; maybe that's why APR doesn't use it?

The help file also says that each seperate 'component' in the path (eg
subdir name) still needs to be shorter than MAX_PATH even with this



Matthew Sanderson
Senior Programmer (UNIX)
TCG Information Systems Pty Ltd
Sydney, Australia
+61 (02) 8303 2407

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 4 07:37:39 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.