Have you ever encountered any issues while transferring files that prevented you from doing so? Well, many Windows users have recently reported that they faced issues while copying and pasting files into a folder, where an error was thrown saying “The file name of the destination folder is too long.”
Also, some other Windows users have expressed frustration when opening any file and said "the file name or extension is too long" and they cannot open the file.
This disappoints users by not allowing them to transfer files to any other folder. While analyzing the issue, we have come up with a series of solutions that may help alleviate the issue and allow users to transfer files easily.
If you encounter a similar situation, please see this post for more information.
Source: https://helpdeskgeek.com/how-to/how-to-fix-filename-is-too-long-issue-in-windows/
Source: https: //www.youtube.com/watch?v=AWK1Na_9Sg0
Note: This solution is for those who are able to move the file to another folder but cannot open the file due to a filename or extension too long error.
Step 1: Enter the desktop by pressing the Windows D keys simultaneously on your keyboard.
Step 2: On the desktop, press the CTRL, SHIFT, and N keys simultaneously to create a new folder.
Step 3: Then, go to the folder where the file is located, which is not opening and throwing the error message.
Step 4: After selecting the file, press the CTRL C key to copy the file.
Step 5: Then, go to the newly created folder and paste it there by pressing the CTRL V keys simultaneously on your keyboard.
Step 6: Now try to open the file from the new folder and see if opening the file throws an error.
Note: Please save/export before proceeding with this step using Registry Editor Make a backup of your registry files, as any small change that goes awry could damage your system software.
Step 1: Press Windows and R keys simultaneously to open the Run command box .
Step 2: Then, typeregedit in the Run box and press the Enter key to open the Registry Editor.
NOTE: If any prompts appear on the screen, click Yes to accept User Access Control to continue .
# Step 3: Once the Registry Editor opens, navigate to the path given below or copy and paste it in the address bar and click onEnter key to access it.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemStep 4: Once you reach FileSystem, make sure the
FileSystem registry key is selected on the left panel of the Registry Editor.
Step 5: Then on the right side of the editor, double-click theLongPathsEnabled DWORD value to open it for editing.
Step 6: In the Edit properties of LongPathsEnabled, enter0 in the text box, and then click OK, As shown below.
Step 7: Once completed, close the Registry Editor and restart the system once for the changes to take effect on the system. See if the problem is solved. Fix 4 – Enable Win32 long paths using Group Policy EditorNote: This only applies to users who have Windows Professional Edition where the local Group Policy Editor is available. But if you want to install it on your home version of Windows then refer to this article.
Step 1: To open the Local Group Policy Editor on your system, press theWindows R key simultaneously, which will launch the Run box.
Step 2: Later, typegpedit.msc in the run box and press Enter key to open it.
第 3 步:打开后,使用下面给出的路径目录浏览编辑器的左侧面板以到达 FileSystem。
计算机配置 > 管理模板 > 系统 > 文件系统
第4步:之后,双击启用Win32长路径设置以打开其属性窗口进行编辑。
第 5 步:打开后,选择已启用单选按钮,然后点击应用和确定 以关闭属性窗口。
步骤 6:关闭本地组策略编辑器并重新启动系统一次。
The above is the detailed content of How to fix file names or extensions that are too long in Windows 11?. For more information, please follow other related articles on the PHP Chinese website!