{"id":18779692,"url":"https://github.com/0xde57/menuhandle","last_synced_at":"2025-04-13T11:30:34.237Z","repository":{"id":91557783,"uuid":"121068885","full_name":"0XDE57/MenuHandle","owner":"0XDE57","description":"Find open handles to files or folders from right-click context menu","archived":false,"fork":false,"pushed_at":"2019-02-13T07:20:10.000Z","size":163,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:51:14.461Z","etag":null,"topics":["poweruser","sysadmin","utility","windows"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0XDE57.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-11T00:55:43.000Z","updated_at":"2024-07-13T00:51:45.000Z","dependencies_parsed_at":"2023-03-02T10:45:31.079Z","dependency_job_id":null,"html_url":"https://github.com/0XDE57/MenuHandle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0XDE57%2FMenuHandle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0XDE57%2FMenuHandle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0XDE57%2FMenuHandle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0XDE57%2FMenuHandle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0XDE57","download_url":"https://codeload.github.com/0XDE57/MenuHandle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705474,"owners_count":21148544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["poweruser","sysadmin","utility","windows"],"created_at":"2024-11-07T20:22:27.153Z","updated_at":"2025-04-13T11:30:34.231Z","avatar_url":"https://github.com/0XDE57.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MenuHandle\nContext menu command to find open handles to files/folders.\n\n![](/docs/folder%20in%20use.PNG)\n\nTired of windows not telling you which program is impeding your workflow? \u003c/br\u003e\nTired of trying to figure out which process is holding your file/folder hostage? \u003c/br\u003e\nTired of killing various processes in task manger until you can continue your day? \u003c/br\u003e\n\nWell fuss no more! This script adds a command to the right-click context menu to find any processes/programs that are using your file/folder.\n\n![](/docs/menu%20command.PNG)\n![](/docs/handle.PNG)\nOh look! VLC is playing a song that was in that folder, thus preventing us from deleting the folder. Now why didn't Windows tell us that instead of \"another program\"...\n\n## How to use/install?    \n1. Download and extract Handle: https://docs.microsoft.com/en-us/sysinternals/downloads/handle    \n2. Download the script: [handle menu command.bat](handle%20menu%20command.bat)   \n3. Edit the script in your favourite text editor    \n4. Set the variable **handlePath** to the path of the handle executable. \u003c/br\u003e\n   ``` eg: handlePath=\"E:\\Documents\\SysinternalsSuite\\handle.exe\" ```\n5. Run the script as admin    \n6. Enjoy. All your problems in life are solved.\n\n\n## How it Works\nThis script simply adds registry key to add a command to the right-click context menu. The command and passes the selected file/folder to handle. The real heavy lifting is done by handle.\n\n\n## What is a handle? \nA handle is a reference to a resource such as a file, thread, memory or a pipe. Often a pointer to to a memory location. \u003c/br\u003e\nSee the [msdn](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724457(v=vs.85).aspx) for more.\n\n## Tips/Notes\nYou must have administrative privilege to run Handle.\u003c/br\u003e\nYou can edit the script to add the -c flag to handle command ([see handle usage](https://docs.microsoft.com/en-us/sysinternals/downloads/handle#usage)), which will forcibly close the handles so you don't have to close any programs. However this is [**not recommended**](https://docs.microsoft.com/en-us/previous-versions/technet-magazine/dd547078(v=msdn.10)) as forcibly closing handles may result in instability / crashes.\n\u003c/br\u003eThis tool combined with the [takeown](https://gist.github.com/0XDE57/38957c935788926416ba20b6bec6fa43) command is very powerful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xde57%2Fmenuhandle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xde57%2Fmenuhandle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xde57%2Fmenuhandle/lists"}