Windows 255 Char limit

Soldato
Joined
14 Oct 2003
Posts
7,831
This is a nice broken feature of Windows.

I am trying to copy some directories from one server to another. In some cases I think the dirs are roughly 4-5 levels deep.

On certain files the copy process breaks with file length errors. So, i count the length of the file (including spaces if any), which is nowhere near 255 chars (counted in Excel). I therefore count the path to the file and the file itself, and that is nowhere near 255 chars. For fun I make the filename slighly less in length, and the copy works. Hrmm. I also note that I have longer file names in the same dir, but these copy!

It also seems to depend on where in the structure you have a long directory name. I received directory length errors on directory names with many less chars in them, definitely a lot less than 255, but these "long" directories created were 2-3 levels deepers down the structure. The 'top' directories were very short in name, 5 - 6 chars. When counting this up, the total length was STILL less than 255.

Anyone seen this before? I assume this is a bug?
 
Yes, but I was getting these errors on files and folders will lengths of 150-170 (including \\sharename\blah\blah\file.txt). There would have to be a huge number of control chars in that case, which I doubt.
 
Back
Top Bottom