Me: I've close the program, now please delete the file
Windows: ok, give me half an hour, it's not easy to delete 500 MB
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Me: I've close the program, now please delete the file
Windows: ok, give me half an hour, it's not easy to delete 500 MB
... And the file is back open somehow. Only now the program throws an error when Windows launches, yet still leeches resources.
Hey Linux, sudo rm -rf /
sigh I'm surrounded by idiots.
"Sure thing boss" you fucking moron.
Reason 3756 why Windows is slopware
In case anyone is interested, there's a powertoy called file locksmith that will show what's using it and let you kill it: https://learn.microsoft.com/en-us/windows/powertoys/file-locksmith
I discovered powertoys only recently, and it's a pretty cool set of tools. From color picker, tiling window manager to regex file renames or copy/paste tools, it has a lot of QoL features.
If you have to be on windows, i.e due ro work, I recommend not sleeping on it.
"Time to see who's stopping me from deleting this file... svchost??? Goddamn it!"
just kill it
Instructions unclear, I shot my gaming rig with a 6 bore shotgunβ¦. And then set it on fire.
Instructions may have been unclear, but you got the gist of it.
He's a little confused, but he's got the spirit.
Probably the indexing service, it's always the indexing service.
Why isn't this in their OS instead of unwanted AI
The performance view thing that comes with windows also allows searching for file handles but it's not very user friendly. Also not possible without admin rights if I remember correctly
Some Windows apps do handle it properly. For example, if you have an archive open in 7-zip and try to delete it, Windows Explorer should correctly tell you that it's open in 7-Zip. I'm not sure why it doesn't work that way for all apps.
Windows doesn't even tell you if Explorer itself has a folder open... how the hell does 7-Zip do it?
Different user
Mac does the same thing (as others have said) and you can at least sudo lsof
and find it, but somehow filesystem access now is worse than Windows 95 era Excel spreadsheet file handles that never worked.
Here's what an operating system is peeps: Something that handles files and programs that live on top of it. That's it.
How is it none of them can't do their basic function anymore?
Files, hardware / peripherals and programs. The distinction can get a bit blurry what with drivers and the fact that Linux exposes most of the hardware via the filesystem.
TBF the task manager and those windows explorer dialogues were programed in like 1996 and it's probably one of the best functioning feature in Windows so changing it too much carries high risks.
changing it too much carries high risks
This is such a Windows way of thinking and I canβt really explain it. Why does every other OS constantly change and evolve but Windows is like βcanβt touch this code from a quarter century ago?β
I dare say, that 90% of all companies in Europe and US, use Windows. And lots of companies relies heavily on software built 20-30 years ago. Microsoft knows this.
That's why they are very reluctant to "touch that piece of code from a quarter century ago" because there's probably a lot of software that would break without it. Software their target audience need.
I don't see the problem with it. Microsoft historically does a great job of making everything worse with updates.
Becuase it's still integral to countless businesses operations.
Because any time anything changes in Windows, people bitch about it.
Lol yea, but it would have been such a small tweak with big big QoL improvements LMAO
There is nothing in windows that's a small tweak.
Changing anything has implications to a banking business Joe somewhere, who's program depends on the original feature working as it does, or one of the 16 layers of code is simply tangled in a way such change would require cascade of rewrites.
I've read articles about various developments: working with ~~regex~~ registry*, or just adding a control panel option, and it's an absolute nightmare.
Bring back spacebar heating!
What gets me is when I'm not allowed to remove an external drive. Deleting a file can be delayed until later but here I am with a physical object that I need to detach from my computer and first I need to play hide and seek with the OS.
If this happens often, you can disable write caching for that drive. It'll feel slightly slower (since it's actually operating at the speed of the hardware instead of caching operations in RAM and gradually writing them to disk in the background), but you'll be able to remove the drive almost instantly.
I used to find it had something to do with the explorer thumbnailer finishing up but sort of not letting go. It would happen if I had pictures or videos on the USB drive, and if I got the error I could go to another folder like my documents, drag a picture into another folder, go look at the pretty new thumbnail, then I could remove the USB drive because the thumbnailer was 'parked' back on the C drive. Sounds like I'm making it up but I swear it worked.
And that removable objectβs filesystem is probably the most shit, unjournalled filesystem in the world so youβre actually fucked if it becomes corrupted by removing it early.
And if you move the drive between operating systems you're very limited in what filesystems you can use because Windows is very limited in what filesystems it can use. So you can't just pick a more robust filesystem.
opening the task manager with a shotgun cocking sound
Shame...