Home  >  Article  >  How to fix file names or extensions that are too long in Windows 11?

How to fix file names or extensions that are too long in Windows 11?

王林
王林forward
2023-04-22 16:37:084032browse

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

Fix 1 – Keep the file name short

  • Typically, this happens because the user selected a file name that is smaller than Windows The specific limit set in the policy for the number of characters in the file name is too long.
  • So if the user tries to rename the file by selecting the file and pressing the F2 key and try to keep it short and nice for better Understand and press Enter, that would be good.
  • After renaming the file, try moving the file to another folder or try opening the file to check if the system still encounters the error.

Fix 2 – Copy the file to another folder with a shorter name

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.

Fix 3 – Enable long path option in Windows using Registry Editor

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, type

regedit 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 .

修复:Windows 11 中的文件名或扩展名太长

# Step 3: Once the Registry Editor opens, navigate to the path given below or copy and paste it in the address bar and click on

Enter key to access it.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Step 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 the

LongPathsEnabled DWORD value to open it for editing.

修复:Windows 11 中的文件名或扩展名太长

Step 6: In the Edit properties of LongPathsEnabled, enter

0 in the text box, and then click OK, As shown below.

修复:Windows 11 中的文件名或扩展名太长

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 Editor

Note: 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 the

Windows R key simultaneously, which will launch the Run box.

Step 2: Later, type

gpedit.msc in the run box and press Enter key to open it.

修复:Windows 11 中的文件名或扩展名太长

第 3 步:打开后,使用下面给出的路径目录浏览编辑器的左侧面板以到达 FileSystem。

计算机配置 > 管理模板 > 系统 > 文件系统

第4步:之后,双击启用Win32长路径设置以打开其属性窗口进行编辑。

修复:Windows 11 中的文件名或扩展名太长

第 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!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete