Monday, December 19, 2022

How to fix filename Is too long issue in Windows

 

Using Registry Editor

Once you have Registry Editor opened, and your backup made, navigate to the location 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 

and find the key LongPathsEnabled. Double-click on LongPathsEnabled

In the Value data: field, make sure the number 1 is in there. 

Click OK to commit the change. Exit Registry Editor and you should be able to work with crazy long file paths now.

  

 

 

 

 

Using Group Policy

Once the Group Policy Editor opens, navigate to Computer Configuration > Administrative Templates > System > Filesystem. There you’ll see the policy Enable Win32 long paths.

 

 

Double-click on it to edit the policy setting. Change it from Disabled to Enabled, then click the OK button to commit the change. 

  

 

The policy may not take effect right away. Reboot the system and check.