How to Fix: AppData/Roaming. Moving. Error. "More than 256 characters long" filenames
Learn how to fix: AppData/Roaming. Moving. Error. "More than 256 characters long" filenames.
📋 Table of Contents
The error 'AppData/Roaming. Moving. Error. "More than 256 characters long" filenames' occurs when trying to move the AppData/Roaming folder to a different partition on the same disk, resulting in an error message that indicates the issue is with filenames exceeding 256 characters.
This error can be frustrating for users who need to free up space on their Windows 10 partition and are unable to do so due to this limitation.
🛑 Root Causes of the Error
- The primary cause of this error is the limit imposed by Windows on file names, which is currently set at 256 characters. This limit can be problematic for users who have files with long names in their AppData/Roaming folder.
- Another possible reason for this error could be issues with the disk or partition where the AppData/Roaming folder is being moved to, but this would typically result in different error messages.
🛠️ Step-by-Step Verified Fixes
Change LongPathsEnabled to 0
- Step 1: Open the Registry Editor by typing `regedit` in the Run dialog box (Windows key + R).
- Step 2: Navigate to the following registry path: HKEY_LOCAL_MACHINE/system egistryunctionalapi\longpathsenabled.
- Step 3: Double-click on the 'LongPathsEnabled' value and change its data from 1 to 0. Then, click OK to close the Registry Editor window.
Use a third-party tool to rename files
- Step 1: Download and install a third-party file renamer tool, such as File Renamer or Bulk File Renamer.
- Step 2: Open the tool and select all the files in the AppData/Roaming folder that have filenames exceeding 256 characters.
- Step 3: Use the tool to rename these files to shorter names, ensuring that each filename is 256 characters or less.
✨ Wrapping Up
To resolve the 'AppData/Roaming. Moving. Error. "More than 256 characters long" filenames' error, users can try changing LongPathsEnabled to 0 using the Registry Editor, or use a third-party file renamer tool to rename files with excessively long names. By following these steps, users should be able to move their AppData/Roaming folder to a different partition without encountering this error.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid