# handle **Repository Path**: pkcile/handle ## Basic Information - **Project Name**: handle - **Description**: 已知windows10电脑查看文件占用有两种方式 1.资源监视器句柄搜索 2.windows handle.exe - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-17 - **Last Updated**: 2024-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- title: windows10电脑查看目录或文件占用 date: 2024-11-17 19:16:19 tags: - windows10 toc: true description: categories: - windows10使用小技巧 --- 文件被占用不能删除,首先需要我们谁在占用,然后再解除对应的占用 ## 已知windows10电脑查看文件占用和解决的两种方式 两种方式等的时间都相对比较长,用系统界面方式比用handle快 #### 1.界面方式,打开资源监视器,点击cpu选项,搜索句柄 ![alt text](image-1.png) ##### 1.1 鼠标右键"结束进程(E)"来解除占用 ![alt text](image-2.png) #### 2.第三方handle程序,cmd输入目录查询,返回对应的 ``` handle C:\Users\2022-12-17-later\Desktop\windows使用\NotificationIcon ``` ![alt text](image.png) ##### 2.1 解除占用 注意:一定不要解除,explorer.exe名称占用;他们对文件占用不能删除没影响 通过杀掉对应的应用对应的pid来解除占用 taskkill /pid 24264 /f ##### 2.2 提升搜索速度 ``` handle -p notepad.exe C:\Users\2022-12-17-later\Desktop\windows使用\NotificationIcon handle -p typora.exe C:\Users\2022-12-17-later\Desktop\windows使用\NotificationIcon ``` ##### 2.3 首次cmd运行handle时不提示介绍页面 ```bat :: 接受EULA reg add "HKCU\Software\Sysinternals\Handle" /v EulaAccepted /t REG_DWORD /d 1 /f >nul 2>&1 handle.exe ``` ![alt text](image-5.png) ##### 2.4 扩展,进程管理器 Handle v5.0 https://learn.microsoft.com/zh-cn/sysinternals/downloads/handle ![alt text](image-4.png) 进程资源管理器 v17.06 https://learn.microsoft.com/zh-cn/sysinternals/downloads/process-explorer ![alt text](image-3.png) #### 3.gitee示例地址 https://gitee.com/pkcile/handle.git