How force delete the file on hard drive in windows 7

杀马特。学长 韩版系。学妹 提交于 2019-12-07 15:52:20

问题


I have a hard drive and this is a bad file on it! When I want to delete file windows says:

"The file name you specified is not valid or too long. Specify a different file name."

But the file not renamed! What do I do?


回答1:


You cannot modify a resource when a running process has a handle to it.

The solution is to end all processes that have a handle to your resource. This is shown below.


1. End all processes that have a handle to the resource:

Start>>All Programs>>Accessories>>System Tools>>Resource Monitor (or Run resmon.exe)

Search for the resource in the Associated Handles searchbox (circled in red). Look in the Handle Name column to see if any of the processes have a handle to the resource's URI and end those processes by right clicking and selecting End Process.

2. You should now be able to modify your resource, e.g. delete, rename, move, etc.




回答2:


Boot an Ubuntu live CD, navigate to the offending folder, and delete whatever files you want. I tried all of the other solutions and none of them worked for me, but Ubuntu did.



来源:https://stackoverflow.com/questions/23676827/how-force-delete-the-file-on-hard-drive-in-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!