Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Max length - Directory plus file name

04 Jan 2010   #1

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 
Max length - Directory plus file name

Hi all
just a quick question

What's the maximum length of a directory PLUS file name -- the reason I'm asking this is that I've some CD's (a lot BTW) ripped into directories into FLAC format.

Tidying up the music folders I sometimes get a warning -- Name too long to send to the re-cycle bin.

I need to know the max nr of characters so I can select the ripping parameters correctly. If the combined directory / file name is too long then I might have trouble backing up the data (music) too.

I usually use ALBUM name (extracted from GRACENOTE or FREEDB depending on what the ripping program is) as the directory name and a number of parameters added to the track title - including a number for the music tracks with the album name as the directory.

However I can't seem to find anything on Max file name length for NTFS.

Cheers
jimbo

My System SpecsSystem Spec
.

04 Jan 2010   #2

Windows 7 x64 (SP1)
 
 

The max file name length is 255 (UTF-16) for the full path the limit is 32,767 (UTF-16).
My System SpecsSystem Spec
12 Sep 2012   #3

Windows 7 Home Premium x64
 
 
In Practice:

Quote   Quote: Originally Posted by logicearth View Post
The max file name length is 255 (UTF-16) for the full path the limit is 32,767 (UTF-16).
I tested this "theory" in practice, and the maximum file name length is indeed 255 bytes, but the full path limit is 258 bytes:



The full path limit of 32,767 characters is only obtainable by using "\\?\c:\<very long path>" in programming languages and does not reflect normal Windows or Dos usage, which is limited to 258 characters + a terminating zero byte:




My System SpecsSystem Spec
.


Reply

 Max length - Directory plus file name





Thread Tools



Similar help and support threads for2: Max length - Directory plus file name
Thread Forum
Solved Max file name length General Discussion
File directory: Many directory bear the same name after hd replacement Performance & Maintenance
How Increase Desktop Icon File Name or Filename Length? General Discussion
directory file listing goes blank General Discussion
Solved 404 - File or directory not found. Chillout Room
file details caching - date and length General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:23 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33