Home >System Tutorial >Windows Series >Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

王林
王林forward
2024-03-27 16:41:081036browse

php editor Xinyi will introduce you to the steps to solve the problem that the win10 file name is too long and cannot be deleted. When using Windows 10 system, sometimes the file name is too long and cannot be deleted, causing trouble to users. To solve this problem, we provide a simple solution to help you easily deal with the situation where the file name is too long and cannot be deleted, and keep your computer clean and tidy. Next, let’s take a look at the specific steps!

1. First find the file or folder you need to delete. Because the file name is too long, the system will prompt when performing the deletion operation, [The file or directory cannot be deleted because the file name is too long]; As shown in the picture:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

2. At this time, the shortcut key [Win R] opens the run, enter [cmd], and open the command prompt after confirmation; as shown in the picture:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10 Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

3. First switch to the disk where the file is located, mine is in D, enter [D:], and then switch to the folder where the file is located, mine is in [1], enter [cd 1], then enter [dir] to see all the files in the directory. There is only one file that needs to be deleted in my directory; as shown in the figure:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

4. Enter [del *.png] at this time, that is, delete all files with png as the suffix in the directory. That is, the files with too long file names that we need to delete this time, the reason why we enter [*.png 】Do not enter the file name because the file name is too long and it is inconvenient to enter. This [*] represents the file with the suffix png; as shown in the figure:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

5, this You can see that our corresponding folder displays [Processing it. .], that is, deletion is in progress. After refreshing, you can see that the file has been deleted; as shown in the figure:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

6. In fact, generally when we need to delete the file, the file name is too old. When files are long and cannot be deleted, these files are the only ones left under this folder, so you can perform a simpler operation, that is, directly delete all the files in the folder. In this way, you only need to switch the directory to the d drive, and in del Just enter [del 1], and then confirm [y] to delete all files in this folder. as the picture shows:

Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10

The above is the detailed content of Steps to solve the problem that the file name is too long and cannot be deleted in Windows 10. For more information, please follow other related articles on the PHP Chinese website!

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