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
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 
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
logicearth

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
1nd1g0

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
Thread Forum
Batch file only works in certain directory
I made a batch file that says this: @echo off cd C:\Users\John\Desktop rename ring.gif ring.jpeg The actual batch file is saved on my I:\ drive, not my C:\ drive. My I:\ drive is an internal HDD that is able to talk with my C:\ drive. When I execute the .bat file, it does nothing...
General Discussion
Missing directory after you add or rewrite a file . Win 7 64 bit,
I have folders in "my documents" named images-2011, images-2012, images-2013. When I add image files to images-2013, the folder Is no longer displayed. When I browse in e.g. Photoshop,the folder is not listed. If I type in the path manually it opens the folder. Reorganizing the file system...
General Discussion
Max file name length
I have a question regarding files. How many levels of subfolders can there be? I've seen the max amount of characters is 260, does this include the path with slashes? I remember back in the day when files could only be 8 characters long and I had to make shorthand notations to remember what the...
General Discussion
the file or directory is corrupted and unreadable
hello, I just purchased a new external harddrive...2TB my passport. when performing a standard backup of my computer from windows 7, it failed twice*. now, even after restart, my computer cannot access the new drive, neither from windows explorer nor cmd prompt...both say "E:\ is not...
General Discussion
How Increase Desktop Icon File Name or Filename Length?
How can one adjust the file name length of desktop icons? I have found the default setting on a new Windows 7 installation to be much too short.
General Discussion
404 - File or directory not found.
404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. I get this message when I go to the thred I posted, what does it mean? And how would I find out witch of the three it is TIA
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 15:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App