PC Review


Reply
Thread Tools Rate Thread

beyond 256 character for directories?

 
 
Dale
Guest
Posts: n/a
 
      29th Jul 2003
Is there a way to extend the directory structure beyond
256?

The limit is for the sum of all directories and file name
not to exceed 256 characters? Right?

Thanks!

Dale
 
Reply With Quote
 
 
 
 
CheckAbdoul
Guest
Posts: n/a
 
      29th Jul 2003
Call the Unicode version of CreateFile( ..) API [ CreateFileW() ] and
prepend "\\?\" to the path to extend the limit to nearly 32,000 wide
characters.

--
Cheers
Check Abdoul [ VC++ MVP ]
-----------------------------------

"Dale" <(E-Mail Removed)> wrote in message
news:09c701c355d9$539fc670$(E-Mail Removed)...
> Is there a way to extend the directory structure beyond
> 256?
>
> The limit is for the sum of all directories and file name
> not to exceed 256 characters? Right?
>
> Thanks!
>
> Dale



 
Reply With Quote
 
Arif Saifee [MSFT]
Guest
Posts: n/a
 
      29th Jul 2003
Note even for the long paths (< 32367 wide characters) the size of each
element of the directory/file cannot exceed MAX_PATH (260 wide characters).
In other words, you can have a path upto 32367 wide characters such as
\\??\C:\Dir1\Dir2\Dir3.... but the length of the "Dir1" cannot exceed 260
wide characters.

--
Thanks,
Arif Saifee [MSFT]

PS: Please post DFS related queries in the newsgroup
"microsoft.public.win2000.file_system". Please use "DFS" in the subject to
make it immediately noticeable.

Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.

"CheckAbdoul" <636865636B6162646F756C406E6F7370616D2E6D7670732E6F7267> wrote
in message news:ejSIM%(E-Mail Removed)...
> Call the Unicode version of CreateFile( ..) API [ CreateFileW() ] and
> prepend "\\?\" to the path to extend the limit to nearly 32,000 wide
> characters.
>
> --
> Cheers
> Check Abdoul [ VC++ MVP ]
> -----------------------------------
>
> "Dale" <(E-Mail Removed)> wrote in message
> news:09c701c355d9$539fc670$(E-Mail Removed)...
> > Is there a way to extend the directory structure beyond
> > 256?
> >
> > The limit is for the sum of all directories and file name
> > not to exceed 256 characters? Right?
> >
> > Thanks!
> >
> > Dale

>
>



 
Reply With Quote
 
CheckAbdoul
Guest
Posts: n/a
 
      29th Jul 2003
Hi Arif,

Thanks for the correction.

--
Cheers
Check Abdoul [ VC++ MVP ]
-----------------------------------

"Arif Saifee [MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Note even for the long paths (< 32367 wide characters) the size of each
> element of the directory/file cannot exceed MAX_PATH (260 wide

characters).
> In other words, you can have a path upto 32367 wide characters such as
> \\??\C:\Dir1\Dir2\Dir3.... but the length of the "Dir1" cannot exceed 260
> wide characters.
>
> --
> Thanks,
> Arif Saifee [MSFT]
>
> PS: Please post DFS related queries in the newsgroup
> "microsoft.public.win2000.file_system". Please use "DFS" in the subject to
> make it immediately noticeable.
>
> Disclaimer: This posting is provided "AS IS" with no warranties, and

confers
> no rights.
>
> "CheckAbdoul" <636865636B6162646F756C406E6F7370616D2E6D7670732E6F7267>

wrote
> in message news:ejSIM%(E-Mail Removed)...
> > Call the Unicode version of CreateFile( ..) API [ CreateFileW() ]

and
> > prepend "\\?\" to the path to extend the limit to nearly 32,000 wide
> > characters.
> >
> > --
> > Cheers
> > Check Abdoul [ VC++ MVP ]
> > -----------------------------------
> >
> > "Dale" <(E-Mail Removed)> wrote in message
> > news:09c701c355d9$539fc670$(E-Mail Removed)...
> > > Is there a way to extend the directory structure beyond
> > > 256?
> > >
> > > The limit is for the sum of all directories and file name
> > > not to exceed 256 characters? Right?
> > >
> > > Thanks!
> > >
> > > Dale

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
All New IIS virtual directories with ASP.NET throw exception "initial character not valid" Pao Microsoft ASP .NET 12 4th Apr 2007 06:13 PM
Copying JPEG image files to new directories makes directories unus =?Utf-8?B?U2ltb24gUC4=?= Windows XP Help 0 29th Jan 2007 02:21 AM
Howto mount directories in directories Johannes Lebek Windows XP General 7 1st Oct 2004 04:35 PM
slow opening directories w/nested directories Steven Shapiro Windows XP Help 0 29th Nov 2003 05:19 PM
Using virtual directories for common directories (scripts, images, styles, etc.) Jeffry van de Vuurst Microsoft ASP .NET 2 30th Jul 2003 08:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 AM.