本文主要是介绍解决 windows 文件被占用的问题 -- The action can‘t be completed because the folder is open in another program,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题
今天要删一个文件但是删不掉,一直提示我文件被占用:
The action can’t be completed because the folder is open in another program
真的烦,想删还不能删,淦
虽然重启可以解决这个问题,但是我不服,我就是要看看哪个孙子干这事
解决方法
- 打开 windows 资源管理器 – Resource Monitor
- 选择顶部
OverView
旁边的CPU
tab - 看到
Services
下面的Associated handles
一栏没,在Associated handles
里有个搜索框 - 在这个搜索框里输入被占用文件名称,不带后缀
- 搜索出来的就是占用需要删除的文件的进程,找到它、干掉它
- 我这边占用要删除 .apk 文件的是
chrome.exe
, ??? - 关掉所有
chrome
浏览器后还是不能删除文件,资源管理器底部还有一堆 chrome.exe 进程,一看是 chrome 插件的进程,再把它们都关掉 - 都关掉之后再次尝试删掉需要删除的文件,可以了
参考链接
- Find out which process is locking a file or folder in Windows
这篇关于解决 windows 文件被占用的问题 -- The action can‘t be completed because the folder is open in another program的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!