Note to self: don't bury files in folders with long names, then move them to archive folders further down the folder tree. You can not open them ever again... or can you?
While Windows restricts the overall length of paths to 260 characters, there two ways to get around it in Windows 10 using a Group Policy or a registry hack. These won't work in every instance, but should work in most. This is done by enabling "NTFS long paths", as follows:
- Group Policy method: Windows key, type gpedit.msc and press Enter |Navigate to Local Computer Policy | Computer Configuration | Administrative Templates | System | Filesystem | NTFS | Double click "Enable NTFS long paths" option.
- Edit registry: Windows key, type regedit and press Enter |Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Group Policy Objects\ {48981759-12F2-42A6-A048-028B3973495F} Machine\System\CurrentControlSet\Policies |Select the LongPathsEnabled key, or create it as a DWORD (32-bit) value if it does not exist | Set the value to 1 and close the Registry Editor.
- HKEY_LOCAL_MACHINE\System\CurrentControlSet\Policies
- On the right side, create a new 32-bit DWORD value named LongPathsEnabled. Set its value data to 1.
- Restart your device.
Sam
- Microsoft (n.d.). A file copy operation fails when files or folders have long paths in Windows Explorer. Retrieved 13 December 2017 from https://support.microsoft.com/en-us/help/2891362/a-file-copy-operation-fails-when-files-or-folders-have-long-paths-in-w
- Moices (2016). Microsoft ends the 260 long path limit (sort of). Retrieved 13 December 2017 from https://www.ghacks.net/2016/05/27/microsoft-260-long-path-limit/
- Wycislik-Wilson, M. (29 May 2016). How to enable paths longer than 260 characters in Windows 10. Retrieved 13 November 2017 from https://betanews.com/2016/05/29/long-paths-windows-10/
No comments :
Post a Comment
Thanks for your feedback. The elves will post it shortly.