Max length - Directory plus file name - Windows 7 Help Forums
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 W8.1 X-64 Opensuse 13.1 W2003 Server
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.


My System SpecsSystem Spec
04 Jan 2010   #2

Windows 8.1 Pro (x64)

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

 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
How Increase Desktop Icon File Name or Filename Length? General Discussion
Solved 404 - File or directory not found. Chillout Room

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 13:13.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App