r/coolgithubprojects • • 5d ago

Little patch for explorer that allow you to unlock every file/folder right in this annoying window

Post image

660KB, no background process, 0% cpu load

Windows 10/11

Source https://github.com/1Stalk/HandsOff

158 Upvotes

30 comments sorted by

18

u/DaydreamingDev 5d ago

Update: Just optimized build, the size is now down from ~660KB to ~201KB.

17

u/asmogeus 4d ago

"Claude make it smaller, no mistakes"

13

u/DaydreamingDev 5d ago

It also show you what exactly process lock your file/folder You can do usual task manager hunting for this process or skip it entirely by pressing "Kill" button

11

u/Dekamir 4d ago

I'd much rather have this as a Windhawk module instead of a live patcher on its own.

7

u/DaydreamingDev 4d ago

That's actually good idea

4

u/DaydreamingDev 4d ago edited 4d ago

If anyone wants to contribute, you can just run run_e2e.ps1 and open a PR adding your row to the Tested Windows Systems section in README.md Or make issue if it failed

That would be a huge help!

2

u/Spiritual_Form_1515 5d ago

Handy app.. You get a star from me..👍

3

u/DaydreamingDev 5d ago

Thanks a lot, really

23

u/Key-Tumbleweed3799 4d ago

Very nice. I found it annoying that Microsoft can't put the name or PID of the process locking the file, so you at least know where to look. Instead of stuffing more and more AI and unwanted spyware/etc into their OS, they could improve it A LOT with small improvements like this. But likely we won't get these in the next 20 years, they don't care about actually improving Windows.

7

u/qalmakka 4d ago

can't put the name or PID

Are you talking about the same Microsoft that hid every single detail from Windows Update except a useless percentage, leaving you to scrub the event log for clues if something goes wrong? Or the same Microsoft that thinks that giving their users vague errors followed by an error code is a good way to report errors?

I think hell would have to thaw after freezing over before Microsoft understands this

4

u/stopbuggingmealready 3d ago

Maybe it’s time to let Claude take over?

„Code Windows 12 in Rust“

„Make no Mistakes“

now we just have to wait, boys 🤣

1

u/Key-Tumbleweed3799 4d ago

Yes yes, I'm talking about the same Microsoft, lmao

5

u/jailh 4d ago

Microsoft has a Powertoy to easily unlock opened files :

https://learn.microsoft.com/en-us/windows/powertoys/file-locksmith

1

u/Lulukaros 4d ago

There is already a preinstalled app called "Resource Monitor" that does that, you search the file that's held up by a program and you can terminate the program holding it

3

u/DaydreamingDev 4d ago

That's true, I just wanted to make a tool that would free me and maybe others from investigation using Resource Monitor or any other tool, just do the desired action with locked files and save time

1

u/nayrngobmil 2d ago

Why did it delete the file immediately without the popup dialog shown above? I tried deleting a video while it was playing and it just kept running normally. Did I set something up wrong?

1

u/DaydreamingDev 2d ago

Video player just not locking your files. I don't know how it actually works and why it still playing, but it happens to me too when i try delete files that opened with my mpv player

1

u/T_rex2700 5d ago

why not use something like locksmith?

9

u/DaydreamingDev 5d ago

Locksmith actually really good.

My solution just fixes problem right inside the windows lock popup without leaving it (with Locksmith you have to go back to the file, right-click it in Explorer, open a separate window, and end the task)

And you don't need to install kinda heavy PowerToys for it

1

u/sinwarrior 4d ago

There's also LockHunter, you can drag files into it to unlock. It also tells you what processes are using it. 

1

u/DaydreamingDev 4d ago

I hadn’t heard of it, but it seems nice and work kinda like Locksmith, you have to right-click on a file to investigate what’s locking it.

My approach is all about maximum simplification: we don’t go anywhere else. We perform the desired action (delete, copy with replace, etc.) right there on the spot and move on.

1

u/sinwarrior 4d ago edited 4d ago

I think yours is very good, might even be better since its more convenient than lockhunter. I was just showing options lol

2

u/DaydreamingDev 4d ago

Thanks for sharing

1

u/thisismeonly 4d ago

I use lockhunter all the time. It would be really nice if your app could offer an unlock instead of kill.

1

u/Arcanium_Walker 4d ago

No offense, but PowerToys can do this either & more

1

u/Visible-Mud-5730 4d ago

Is it possible to put code in windhawk?

1

u/MrCufiy 2d ago

This is so cool! Could you please port it to windhawk too?

1

u/Any-Assignment-3556 1d ago

about time icl