Share via

How do I change how long file & folder names can be ?

Anonymous
2012-09-22T01:45:59+00:00

How do I change how long my file & folder names can be ?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-09-22T14:47:43+00:00

    The path length limit cited in the article referenced by Abdul R is 260.

    It depends on the length of the complete path to the file (such as C:\Program Files\filename.txt).Windows limits a single path to 260 characters. This is why you might occasionally get an error when copying a file with a very long file name to a location that has a longer path than the file's original location.

    -------------------------------------

    However, there are various subtleties that lower that number in practice to 255 (or less) including any spaces.

    We begin with the absolute limit imposed by Windows. The operating system API puts a limit (called MAX_PATH) of 260 characters for the complete name with the path included. This number is often quoted. However, actual limits are smaller because of various other restrictions. For example, all names have to have a null terminator at the end. Normally only the computer sees this end marker but it counts as a character so there are really only 259 characters available. (Forgetting to count the null terminator is a common mistake.) Another three characters are used by the drive or volume designation (e.g.,**C:*). Thus, the limit for naming all the folders and subfolders plus the file is reduced to 256 characters. However, no individual file or folder can have a name longer than 255 characters. This includes spaces and back slashes used as separators. This limit of 255 characters per object is imposed by the way that Windows encodes characters but other considerations usually impose lower limits.*

    from http://vlaurie.com/computers2/Articles/filenames.htm


    More details

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx

    =====================

    And now, for the grand fanale, the answer to your question:

    You cannot change the limit on the length of the path. It is imposed by various requirements and is hard coded into the system. You can adjust the "balance" as between file and folder/sub-folder names. E.g., use short directory names so you can use longer file names.

    ======================

    All of this can be a nuisance to the user. A file name can be OK when originally created but prove too long if the file is to be copied or moved to a different location whose path is longer.

    There can be additional complications if files are to be burned to DVD or CD.

    Tom Ferguson

    Italics are added. They indicate a quote from source as indicated.

    TF

    90+ people found this answer helpful.
    0 comments No comments

12 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-01-24T19:06:48+00:00

    Could't agree more. It is just simply show how arrogant and condescending Microsoft is. It should NOT be such a limitation that cause numerous difficulty and grief in use of the system, regardless what's the reasons behind. It could be the speed issue but again that just show how those designers and engineers are not working hard enough to solve the problems. I am literally cursing those designers and engineers for such idiotic decision and ignore the fact thousands of ppl are affecting by this. Amount of time and money and life wasted on their stupidity is just enormous.

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-12-21T13:05:38+00:00

    This is pathetic that we need to use work around for the system that pretends to be 'the best in class'.

    Microsoft promised a solution for that already a long time ago.

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2013-04-22T05:25:55+00:00

    Dear Friends,

    since it is really affecting our day to day business activities and also there is no such limitations in Linux or Unix based operating systems , so there should be a solution from Microsoft.

    Also very difficult to get a support from MS because of I am not a partner or doesn't have software assurance ,so please provide a solution overcome the same.

    Thanks

    Agi

    4 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2012-09-22T13:46:32+00:00

    Hi,

    Refer the article below:

    File names and file name extensions: frequently asked questions

    http://windows.microsoft.com/is-IS/windows7/File-names-and-file-name-extensions-frequently-asked-questions

    Let us know if the information was helpful.

    1 person found this answer helpful.
    0 comments No comments