Results 1 to 7 of 7

Thread: max length filename

  1. #1
    John A Grandy Guest

    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 ?



  2. #2
    Pegasus \(MVP\) Guest

    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.



  3. #3
    Bill Grant Guest

    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.


  4. #4
    Pegasus \(MVP\) Guest

    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.



  5. #5
    John A Grandy Guest

    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.
    >




  6. #6
    Bill Grant Guest

    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.
    >>

    >
    >


  7. #7
    John A Grandy Guest

    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.
    >>>

    >>
    >>




Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,920,604.58557 seconds with 17 queries