-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OLD BRANCH] [New PowerToy] File Locksmith #20863
[OLD BRANCH] [New PowerToy] File Locksmith #20863
Conversation
@niels9001 / @cinnamon-msft I think this is a UX that should be pretty quick and easy to update. I think
|
@crutkas Rough mock-up.. are the number of blocked files something we want to show on the highest level or do we expect that to be secondary information (as shown below)? |
Love the adjustment.
|
Minus the location of the expander, i love this mock and would be happy to have it in a v1 FYI. |
I think secondary is good enough.
Definitely yes. Maybe you want to know it for a specific file in a folder and as @ivanstosic-janea mentioned you can open the utility with multiple files selected. Alternatively we can allow searching/filtering the list by file like the search in PT Run's plugin manager. |
my alt view comment is around when the scenario for actually running the utility. it is since a file is locked, not what exe are locking files. The pivot for information is "Here is the list of files that are locked by who", not "who has files locked and what they are are locking". |
You mean you want to know what files in a folder are locked and blocking the user from deleting the folder? |
|
@htcfreek @crutkas Great feedback - a more polished version: Some UI tweaks, and making the files clickable so you can open its directory? @crutkas The expander can be expanded clicking on the entire thing - and e.g. Settings use the same margin there so I'm assuming users won't miss click :)? For the list of blocking files I had this in mind: |
@niels9001 |
@niels9001 what happens when you click on one of the file links in the expander? |
@niels9001 I can also give write access to my fork if anyone's interested. |
This was just mocked up in a sample project.
Idea was to open the folder containing the file - not sure if that's useful or not?
I'm happy to pick up the XAML work for this one :).. could we have your fork as a feature branch on this repo like we do with the other features? |
Okay, I will create a feature branch |
Closing in favor of #20930, since GitHub won't let me change the source branch. Microsoft, please fix :) |
Summary of the Pull Request
This PR adds a new PowerToy that can be used to check which processes are holding files open, thus preventing them from being deleted, for example. It does this by adding a context menu entry in the Windows Explorer, activated for all files and directories.
This PR is a draft, and most likely the UI needs some improvement.
Things that need to be done:
Development and testing
I modified the installer script to add registry entries, so this utility should work out of the box. If you plan to do development on it, there is a more convenient way to test it. Build the solution, run
cmd
and go to the directory with the output binaries, then runregsvr32 PowerToys.FileLocksmithExt.dll
. This will callDllRegisterServer
and that will add the necessary registry keys. If you want to remove these registry keys, runregsvr32 /u PowerToys.FileLocksmithExt.dll
.After opening the context menu in Windows Explorer, the dll will be loaded and Explorer will prevent you from overwriting it. In that case you can just kill
explorer.exe
and restart it. The dll will not be held until you open the context menu again, allowing you to recompile the dll.PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed