Win32 Long Paths - Enable or Disable in Windows 10

    Win32 Long Paths - Enable or Disable in Windows 10

    How to Enable or Disable Win32 Long Paths in Windows 10
    Published by
    2016-05-28
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 16,584

    Show Printable Version 


    How to Enable or Disable Win32 Long Paths in Windows 10

    information   Information
    by default, the maximum path length limit in Windows is 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character.

    Starting with Windows 10 build 14352, you can enable NTFS long paths to allow manifested win32 applications and Windows Store applications to access paths beyond the normal 260 characters limit per node. Enabling this setting will cause the long paths to be accessible within the process.

    Starting with Windows build 1607, this policy has moved and is now called Win32 long paths.

    This tutorial will show you how to enable or disable Win32 long paths to have paths longer than 260 characters for all users in Windows 10.

    You must be signed in as an administrator to be able to enable or disable Win32 long paths.


    Contents:
    • Option One: To Enable or Disable Win32 Long Paths using Group Policy
    • Option Two: To Enable or Disable Win32 Long Paths using a reg file






    Win32 Long Paths - Enable or Disable in Windows 10 OPTION ONE Win32 Long Paths - Enable or Disable in Windows 10
    To Enable or Disable Win32 Long Paths using Group Policy

    Note   Note
    Local Group Policy Editor is only available in the Windows 10 Pro, Enterprise, and Education editions.

    All editions can use Option Two below.


    1. Open the Local Group Policy Editor.

    2. In the left pane of local group policy editor, navigate to the location below. (see screenshot below)

    Computer Configuration\Administrative Templates\System\Filesystem

    Click image for larger version. 

Name:	Win32_Long_Paths_gpedit-1.png 
Views:	51 
Size:	55.4 KB 
ID:	110646

    3. In the right pane of Filesystem in Local Group Policy Editor, double click/tap on the Enable Win32 long paths policy to edit it. (see screenshot above)

    4. Do step 5 (enable) or step 6 (disable) below for what you would like to do.


     5. To Enable Win32 Long Paths

    A) Select (dot) Enabled, click/tap on OK, and go to step 7 below. (see screenshot below)


     6. To Disable Win32 Long Paths

    a) Select (dot) Not Configured or Disabled, click/tap on OK, and go to step 7 below. (see screenshot below)

    note: Not Configured is the default setting.

    Click image for larger version. 

Name:	Win32_Long_Paths_gpedit-2.png 
Views:	19 
Size:	26.8 KB 
ID:	110647

    7. When finished, you can close the local group policy editor if you like.






    Win32 Long Paths - Enable or Disable in Windows 10 OPTION TWO Win32 Long Paths - Enable or Disable in Windows 10
    To Enable or Disable Win32 Long Paths using a reg file

    Note   Note
    The .reg files below will add and modify the dword value in the registry key below.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

    LongPathsEnabled dword

    (delete) = disable
    1 = Enable


    1. Do step 2 (enable) or step 3 (disable) below for what you would like to do.


     2. To Enable Win32 Long Paths

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Enable_Win32 _long_paths.reg

    download


     3. To Disable Win32 Long Paths

    note: this is the default setting.

    A) Click/tap on the download button below to download the file below, and go to step 4 below.

    Disable_Win32 _long_paths.reg

    download

    4. Save the .reg file to your desktop.

    5. Double click/tap on the downloaded .reg file to merge it.

    6. If prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    7. If you like, you can now delete the downloaded .reg file.

    8. Restart the computer to apply.



    that's it,
    shawn

  1. Joined : Nov 2015
    Pretoria South Africa
    Posts : 198
    Win 10 Pro Build 1607 14393.447
       2016-05-30 #1

    Hi Shawn,

    Firstly, I know the information in this tutorial applies to the new Insider preview build, but what would happen if one adds the DWORD to an existing WIN 10 system using option2? Does the OS simply ignore the option or will it cause problems?

    The only reason I am asking this is because I have a backup HDD with many files on it that refuse to open because the path names are too long? At the moment I have to use all sorts of tricks to get around the restriction, by moving and renaming the files before they can be opened on a PC running Win 10.

    best

    Geoff
      My System SpecsSystem Spec


  2. Joined : Oct 2013
    Posts : 16,584
    64-bit Windows 10 Pro build 14986
       2016-05-30 #2

    Hello Geoff,

    It won't hurt anything to try on an older build, but it'll most likely just not have any affect since the policy wasn't added until build 14352.
      My System SpecsSystem Spec


  3. Joined : Nov 2016
    Posts : 1
    I don't know
       2 Weeks Ago #3

    Please update this thread, because in Windows 10 1607 this was moved.
    See here: Windows 10 option missing - Super User
      My System SpecsSystem Spec


  4. Joined : Oct 2013
    Posts : 16,584
    64-bit Windows 10 Pro build 14986
       2 Weeks Ago #4

    Thank you @ErdnussFlipS. The tutorial has now been updated.
      My System SpecsSystem Spec


  5. Joined : Nov 2016
    Posts : 4
    Windows 10 Pro
       2 Weeks Ago #5

    Brink said: View Post
    Thank you @ErdnussFlipS. The tutorial has now been updated.
    Hello there,

    I receive the following error when attempting to copy and paste a 25 GB large folder with many sub-folders and files:
    "Source Path Too Long. The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation."
    I'm given an option to cancel the operation and nothing else. I'm a little bit surprised to see this message as both the source and destination drives are set to NTFS file system, I'm running a Windows 10 Pro build ver 1607 build 14393.447 (which has long file path names turned on by default as said online), as well as I've done 'enable ntfs long path filenames' by accessing win + r > gpedit.msc > computer configuration > administrative templates > system > filesystem > enable win32 long paths (as 'enable ntfs long paths' has been renamed since some build). I've restarted my computer but am still facing the same old error message. I can't afford scanning a path and changing filename's of nearly few hundred files and folders in best case scenario. Would you have any solution for me ?


    Thanks


    Dan
      My System SpecsSystem Spec

  6.    2 Weeks Ago #6

    Hi there

    Windows explorer and a load of other applications which use the explorer interface for selecting files still DO NOT support long file names / paths + folders + files names still have to be < around 260 chars -- can't remember the exact number but it's about that.

    I'm sure I've posted on this a few times -

    I've a load of Music files which have descriptive path + folder names and then of course track names .

    Windows truncates to some sort of meaningless drivel.

    Maybe totally new apps not dependant on windows explorer for file browsing might work bit things like VLC / Plex / Movie player etc etc still use Windows explorer / file explorer for browsing / searching files.

    Until File explorer is fixed to handle long file names I think you'll just have to forget the option even exists as 99.999% of stuff out there still works with the fille / path length limitation whatever settings are used.

    Cheers
    jimbo
      My System SpecsSystem Spec


  7. Joined : Nov 2016
    Posts : 4
    Windows 10 Pro
       2 Weeks Ago #7

    That sucks hard :/. I'll wait for other opinions but I see future in dark colors lol. Can't imagine that they still didn't work out that issue since Windows XP or Vista. The best part is the 'Pro' attached to a Windows 10 version. How can I treat it like a professional operating system if I'm being stuck on silly errors like this which stop me from doing my job well...
      My System SpecsSystem Spec


 


Similar Threads
Tutorial Category
Cortana - Enable or Disable in Windows 10
How to Enable or Disable Cortana in Windows 10 Cortana is included as an integrated part of the desktop in Windows 10. Cortana is one click away on the taskbar, helping you find the things you need while proactively bringing you information you...
Tutorials
Account - Enable or Disable in Windows 10
How to Enable or Disable User Accounts in Windows 10 User accounts help control which files and apps each person can use and what changes they can make to the PC. If you have a user account that you want to make unavailable without deleting...
Tutorials
Projecting to this PC - Enable or Disable in Windows 10
How to Enable or Disable Projecting to this PC in Windows 10 The Projecting to this PC feature uses the Connect app to allow you to wirelessly connect a Windows Phone or PC to your PC's screen, and use its keyboard, mouse, and other devices too....
Tutorials
Sync Your Settings - Enable or Disable in Windows 10
How to Enable or Disable Sync Your Settings in Windows 10 When sync your settings is turned on, Windows 10 keeps track of your theme, apps, Internet Explorer settings, passwords, language preferences, Ease of Access, and other Windows settings...
Tutorials
Hibernate - Enable or Disable in Windows 10
How to Enable or Disable Hibernate in Windows 10 Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs (PCs with InstantGo don't have the hibernate option). While sleep puts your work and...
Tutorials
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 21:59.
Find Us
Twitter Facebook Google+



Windows 10 Forums