Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 檔案無法刪除?資源監視器 3 步驟定位佔用進程

編輯:Windows 7 系統介紹

問題原因

檔案/資料夾被某進程持有控制代碼 (Handle),必須結束該進程才能刪除。

內建工具解決:資源監視器

  1. 建立測試資料夾 D:\test,CMD cd /d D:\test 佔用目錄。
  2. 嘗試刪除 → 提示「檔案在另一個程式中開啟」。
  3. 右鍵工作列 → 「啟動工作管理員」→「效能」→「資源監視器」。
  4. 「CPU」索引標籤 → 「關聯的控制代碼」搜尋框輸入 test。
  5. 結果顯示 cmd.exe 持有 D:\test。
  6. 右鍵 cmd.exe → 「結束程序」→ 確認。
  7. 返回總管,資料夾順利刪除。

快速啟動捷徑

建立捷徑目標:C:\Windows\System32\perfmon.exe /res,單擊直達資源監視器。

常見佔用進程

  • explorer.exe (縮圖預覽/詳細資料讀取)
  • SearchIndexer.exe (索引編目)
  • 防毒軟體即時掃描
  • 編輯器/IDE (VS Code/IntelliJ 開啟專案目錄)
Copyright © Windows教程網 All Rights Reserved