It's giving the same error after changing that value too. I can able to overwrite the values as per your suggestion and the same value remains after reboot also,but when I try to clone I don't get my repository as it is displaying the same error. Any other suggestions please..
How to extend file path characters maximum limit manually?
I am trying to make a clone from mercurial repository. But, unfortunately it is refusing to clone because of the length of the file path. It's displaying as below,
abort: The filename or extension is too long.
After trying the solutions in different articles, I can't overcome this problem. Suggest me a better solution.
Note: The articles I referred in this community doesn't solve my problem, as it is stating that it cannot be extended.
Windows for home | Windows 10 | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
6 answers
Sort by: Most helpful
-
Anonymous
2019-09-30T13:28:48+00:00 -
Anonymous
2019-09-27T15:25:52+00:00 Then try this way, using Regedit:
- Open the Start menu and type “regedit.” Launch the application.
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
- Right-click the value “LongPathsEnabled” and select Modify.
- Change “Value data” from 0 to 1.
- Click OK.
-
Anonymous
2019-09-27T11:37:10+00:00 Follow this other procedure if the value isn't there:
- Hit the Windows key, type gpedit.msc and press Enter.
- Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem
- Double click the "Enable long paths Win32" option and enable it.
- Reboot.
-
Anonymous
2019-09-27T08:31:27+00:00 Hi Stefano Giovanni Tamiotti ,
Thanks for your suggestion. I am using windows 10 pro, but I can't find the Enable NTFS long paths option in the location you said in your suggestion. The options visible are Enable NTFS pagefile encryption and Short name creation optionsand that too already enabled. Please tell me where am I missing.
-
Anonymous
2019-09-26T14:04:53+00:00 Hi Kishorejana,
I'm Stefano an Independent Advisor, here to help you.
If you need to enable path longer than 260 characters, you can follow the procedure below:
- Windows 10 Home:
- Hit the 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.
- Windows 10 Pro:
- Hit the Windows key, type gpedit.msc and press Enter.
- Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS.
- Double click the Enable NTFS long paths option and enable it.
A reboot will be required.
If you are using git, you can also try this way:
Open the Github Powershell or cmd.exe (you need to have git as an environment variable) and execute the following command :
git config --system core.longpaths true