lada04
V2EX  ›  问与答

[求助] 右键菜单中加入“谁在占用 该文件夹/文件”的选项

  •  
  •   lada04 · Oct 19, 2018 · 1243 views
    This topic created in 2761 days ago, the information mentioned may be changed or developed.

    经常重命名 or 删除一个文件夹或文件,提示被占用

    我想利用 sysinternals 的 handle 工具,在右键菜单中加一个“谁在占用”的选项

    右键单击文件夹或文件,就能直接调用 handle 查看了:

    就像下面的注册表 1,可以在右键菜单中加入 cmd 入口;注册表 2,可以在右键菜单中加入记事本打开入口一样

    但我不知道,这个用注册表应该怎么写,有熟悉注册表和右键菜单的朋友,知道怎么写吗?

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenDOSBox]
    @="在此处打开命令提示符"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenDOSBox\Command]
    @="CMD.EXE /K CD %1"
    
    [HKEY_CLASSES_ROOT\*\shell\Notepad]
    @="用记事本打开该文件"
    
    [HKEY_CLASSES_ROOT\*\shell\Notepad\Command]
    @="notepad %1"
    
    Supplement 1  ·  Oct 20, 2018
    已解决,最终选择的 LockHunter
    cctrv
        1
    cctrv  
       Oct 19, 2018 via iPhone
    Arnie97
        2
    Arnie97  
       Oct 20, 2018 via Android   ❤️ 2
    推荐 Unlocker。

    如果你非要折腾一下,把 %1 前面的 notepad 换成你 handle 的路径,Notepad\ 随便换成什么你喜欢的路径
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.