Showing posts with label Path. Show all posts
Showing posts with label Path. Show all posts

Thursday, 29 April 2021

How to Enable Long Path Support in Windows 10 (1607) and Higher

Since Windows 10 Anniversary Update (1607), it became possible to disable the MAX_PATH limit on the Windows operation system level without using prefix \\?. By default, this feature is disabled.

To enable the built-in support for long paths in Windows 10/Windows Server 2016, use the Regedit.exe editor to set the LongPathsEnabled parameter of REG_DWORD in the registry key HKLM\SYSTEM\CurrentControlSet\ControlFileSystem with a value 1.

the file name(s) would be too long for the destination folder

You can change this registry parameter with the following PowerShell command:

Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\ControlFileSystem -Name LongPathsEnabled -Value 1

Or you can enable long path support via Group Policy Editor (Win + R gpedit.msc) Computer Configuration > Administrative Templates > System > Filesystem. Enable the policy Enable NTFS long paths.

 

Source : https://theitbros.com/destination-path-too-long-error-when-movingcopying-a-file/