#Windows10 – Path too long, not anymore !!! (Goodbye to 256 chars restriction)

image

Hi !

If you are an advanced Windows user or a basic developer (like me), for sure you know the “path too long” issue. I used to get this error a lot with some MSBuild definitions when downloading or copying files. The error details are something similar to

TF270002: An error occurred copying files from <Path A> to <Path B>. Details: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

And even if this was 6 years ago, in today’s latest Windows 10 version, we still have the NTFS path issue. This is because the maximum length for a path (file name and its directory route) has been defined by 260 characters. This is what we usually knows as MAX_PATH.

Lucky for us, in the latest version of Windows 10 available via Windows Insider in the Fast Ring, we can change this defined length using some local policies.

image

The following steps describes how to do this.

  • Run [gpedit.msc], this will open the Open Group Policy Editor
  • Navigate to [Local Computer Policy >> Computer Configuration >> Administrative Templates >> System >> Filesystem >> NTFS]
  • Click [Enable NTFS long paths]

image

  • Enable NTFS long pats

image

And that’s it! Now we can finally avoid the [MAX_PATH / path too long issue] Open-mouthed smile

Greetings @ Toronto

-El Bruno

References

Advertisements

18 thoughts on “#Windows10 – Path too long, not anymore !!! (Goodbye to 256 chars restriction)

  1. Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

    Like

  2. Use “LONG PATH TOOL”, it is useful for deleting the long file, renaming the error file,etc..It gives good result and easy to use.

    Like

  3. Long path tool is the very good program for error, unlock solution.
    Try it and solve your problem.
    I used long path tool and I solve my error, unlock problem solution.

    Like

  4. Hello,

    I had the same problem. I didn´t know what to do so I searched on the internet for some solutions.

    And I read about [b]Long Path Tool[/b], which is a great tool in these type of cases. 😮

    It worked really well. Hope it works for you too :p

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s