Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



max length filename

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-10-2008
John A Grandy
 
Posts: n/a
max length filename

I understand the maximum length for a filename in Windows is 256 ... true ?

Is there any way around this ? Certainly people have need for apps that
use longer filenames, no ?

Any shells for Windows that somehow get around this problem ?



Reply With Quote
  #2  
Old 16-10-2008
Pegasus \(MVP\)
 
Posts: n/a
Re: max length filename


"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
news:exGIejxLJHA.1156@TK2MSFTNGP05.phx.gbl...
>I understand the maximum length for a filename in Windows is 256 ... true ?
>
> Is there any way around this ? Certainly people have need for apps that
> use longer filenames, no ?
>
> Any shells for Windows that somehow get around this problem ?
>


AFAIR, the limit is 260 characters. Some utilities (e.g. robocopy) are not
subject to it. I'm not aware of any shells that get around it.


Reply With Quote
  #3  
Old 16-10-2008
Bill Grant
 
Posts: n/a
Re: max length filename



"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:ukqZrA1LJHA.740@TK2MSFTNGP03.phx.gbl...
>
> "John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
> news:exGIejxLJHA.1156@TK2MSFTNGP05.phx.gbl...
>>I understand the maximum length for a filename in Windows is 256 ... true
>>?
>>
>> Is there any way around this ? Certainly people have need for apps that
>> use longer filenames, no ?
>>
>> Any shells for Windows that somehow get around this problem ?
>>

>
> AFAIR, the limit is 260 characters. Some utilities (e.g. robocopy) are not
> subject to it. I'm not aware of any shells that get around it.
>

I thought it was 255 characters.

Reply With Quote
  #4  
Old 16-10-2008
Pegasus \(MVP\)
 
Posts: n/a
Re: max length filename


"Bill Grant" <not.available@online> wrote in message
news:ez2F212LJHA.1500@TK2MSFTNGP06.phx.gbl...
>
> I thought it was 255 characters.


You made me curious, so I ran a quick test. Here is the longest folder+file
name I managed to create:
D:\aaaaaaaaaabbbbbbbbbbcccc0\aaaaaaaaaabbbbbbbbbbcccc1\aaaaaaaaaabbbbbbbbbbcccc2\aaaaaaaaaabbbbbbbbb bcccc3\aaaaaaaaaabbbbbbbbbbcccc4\aaaaaaaaaabbbbbbbbbbcccc5\aaaaaaaaaabbbbbbbbbbcccc6\aaaaaaaaaabbbbb bbbbbcccc7\aaaaaaaaaabbbbbbbbbbcccc8\123456789012345678.txt
It's 259 characters long.


Reply With Quote
  #5  
Old 16-10-2008
John A Grandy
 
Posts: n/a
Re: max length filename

So , like I said , the max length for a filename alone is 256 ...


"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:O2zCCN3LJHA.5660@TK2MSFTNGP03.phx.gbl...
>
> "Bill Grant" <not.available@online> wrote in message
> news:ez2F212LJHA.1500@TK2MSFTNGP06.phx.gbl...
>>
>> I thought it was 255 characters.

>
> You made me curious, so I ran a quick test. Here is the longest
> folder+file name I managed to create:
> D:\aaaaaaaaaabbbbbbbbbbcccc0\aaaaaaaaaabbbbbbbbbbcccc1\aaaaaaaaaabbbbbbbbbbcccc2\aaaaaaaaaabbbbbbbbb bcccc3\aaaaaaaaaabbbbbbbbbbcccc4\aaaaaaaaaabbbbbbbbbbcccc5\aaaaaaaaaabbbbbbbbbbcccc6\aaaaaaaaaabbbbb bbbbbcccc7\aaaaaaaaaabbbbbbbbbbcccc8\123456789012345678.txt
> It's 259 characters long.
>



Reply With Quote
  #6  
Old 17-10-2008
Bill Grant
 
Posts: n/a
Re: max length filename

Well no, it's 255. .txt is four characters.

"John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
news:#LSaPx7LJHA.5692@TK2MSFTNGP04.phx.gbl...
> So , like I said , the max length for a filename alone is 256 ...
>
>
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:O2zCCN3LJHA.5660@TK2MSFTNGP03.phx.gbl...
>>
>> "Bill Grant" <not.available@online> wrote in message
>> news:ez2F212LJHA.1500@TK2MSFTNGP06.phx.gbl...
>>>
>>> I thought it was 255 characters.

>>
>> You made me curious, so I ran a quick test. Here is the longest
>> folder+file name I managed to create:
>> D:\aaaaaaaaaabbbbbbbbbbcccc0\aaaaaaaaaabbbbbbbbbbcccc1\aaaaaaaaaabbbbbbbbbbcccc2\aaaaaaaaaabbbbbbbbb bcccc3\aaaaaaaaaabbbbbbbbbbcccc4\aaaaaaaaaabbbbbbbbbbcccc5\aaaaaaaaaabbbbbbbbbbcccc6\aaaaaaaaaabbbbb bbbbbcccc7\aaaaaaaaaabbbbbbbbbbcccc8\123456789012345678.txt
>> It's 259 characters long.
>>

>
>

Reply With Quote
  #7  
Old 23-10-2008
John A Grandy
 
Posts: n/a
Re: max length filename

Heh ...

I am interested in the max filename length including any suffix.

I don't think it's reasonable to not include the suffix in the length --
there is no requirement that a filename include a suffix.

My tests show that :

filename max length = 256

filepath max length = 259




"Bill Grant" <not.available@online> wrote in message
news:emkbSUAMJHA.1156@TK2MSFTNGP04.phx.gbl...
> Well no, it's 255. .txt is four characters.
>
> "John A Grandy" <johnagrandy-at-gmail-dot-com> wrote in message
> news:#LSaPx7LJHA.5692@TK2MSFTNGP04.phx.gbl...
>> So , like I said , the max length for a filename alone is 256 ...
>>
>>
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:O2zCCN3LJHA.5660@TK2MSFTNGP03.phx.gbl...
>>>
>>> "Bill Grant" <not.available@online> wrote in message
>>> news:ez2F212LJHA.1500@TK2MSFTNGP06.phx.gbl...
>>>>
>>>> I thought it was 255 characters.
>>>
>>> You made me curious, so I ran a quick test. Here is the longest
>>> folder+file name I managed to create:
>>> D:\aaaaaaaaaabbbbbbbbbbcccc0\aaaaaaaaaabbbbbbbbbbcccc1\aaaaaaaaaabbbbbbbbbbcccc2\aaaaaaaaaabbbbbbbbb bcccc3\aaaaaaaaaabbbbbbbbbbcccc4\aaaaaaaaaabbbbbbbbbbcccc5\aaaaaaaaaabbbbbbbbbbcccc6\aaaaaaaaaabbbbb bbbbbcccc7\aaaaaaaaaabbbbbbbbbbcccc8\123456789012345678.txt
>>> It's 259 characters long.
>>>

>>
>>



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "max length filename"
Thread Thread Starter Forum Replies Last Post
To get Filename for jsp Page on URl p_g Software Development 1 27-10-2011 02:22 PM
Convert String to filename Maya Angelou Software Development 5 12-03-2010 01:20 PM
Excel filename too large munkey79 Windows Software 2 09-07-2009 04:24 PM
PXE-E53: No boot filename received Jisbomb Windows XP Support 3 14-04-2009 07:43 AM
PXE-E53 No boot filename received notagirrafe Windows Server Help 3 13-06-2008 01:58 AM


All times are GMT +5.5. The time now is 06:41 PM.