🫩🫩🫩🫩

  • kuneho@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    44 minutes ago

    back in the XP days, I used a software called “Unlocker” just for this problem. It probably still exists, I don’t know, because since Windows 7, the easiest way to find out what process locks a file is to open Resource Monitor (Start search: resmon) and on the CPU tab, using the “Associated handles” list, you can search for the file name and see the process in question (and kill it).

    So yeah, Resource Monitor is a useful tool on Windows.

      • kuneho@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        37 minutes ago

        Why would they not include these into base kit Windows is beyond me.

        Some of them felt a bit buggy when I last time used Windows, maybe they aren’t fully ready to ship (like Samsung’s Good Lock apps?). And most features didn’t do quite what I imagined it to do, but that’s probably a “me problem”.

  • AceFuzzLord@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    40 minutes ago

    Same thing whenever I try to unplug a USB, Win10, on my desktop. There have been times where I plugged in one, opened a file, closed it within seconds, did the safely remove thing, and then I get the whole quick song and dance about some program still using it because of how sluggish it is to actually end what’s using it in the background.

    Also, my phone’s keyboard software was bugging out and replaced “song” with “incest” for no discernable and wanted to replace the next word “and” with “rape incest”. Not related, but fuck Gboard and that weird glitch where it’ll replace words with random shit for no reason.

  • Seefra 1@lemmy.zip
    link
    fedilink
    arrow-up
    51
    arrow-down
    1
    ·
    3 hours ago

    “Hey Linux, can you just delete this file please?”

    “Sure thing bud, a program is using it, it’s ok, I will just unlink the inode anyway, the program can still access it until it closes the file”

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      15
      ·
      1 hour ago

      This is honestly one of my favorite features of the linux filesystem. As a dev it makes things like replacing and hot-reloading plugins way easier.

      It turns out you can kind of get the same functionality on Windows if you rename the open file and place the new one with the original name, but it’s a bit of a hack.

        • REDACTED@infosec.pub
          link
          fedilink
          English
          arrow-up
          4
          ·
          35 minutes ago

          That’s actually a thing, but I’m not entirely sure in which cases. Probably only for services and not apps, but I’ve done that myself where deleting a file was impossible, but renaming it and deleting it worked.

        • mcv@lemmy.zip
          link
          fedilink
          arrow-up
          4
          ·
          37 minutes ago

          Yeah, super annoying. In Linux you can rename or move it and the app using it doesn’t care.

          Although having the option of listing the app using a file so I can kill the app would also be really nice to have. I’m sure Linux has something for that too, but I don’t know what it is.

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          1
          ·
          6 minutes ago

          Maybe it’s only possible in certain cases, but I can tell you for certain it’s possible with running exe’s and loaded dll’s. I have a CMake step on Windows that does this rename hack so my builds don’t fail if I still have the app running.

  • skuzz@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    ·
    2 hours ago

    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?

  • judgyweevil@feddit.it
    link
    fedilink
    arrow-up
    37
    ·
    edit-2
    4 hours ago

    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

    • killeronthecorner@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      51 minutes ago

      Here’s an incredibly animated chart of how poorly I’m doing. Note that I seem to throttle the operation every 5 seconds or so.

      Explanation? No, no. Haha. No. We don’t do anything like that.

  • danA
    link
    fedilink
    arrow-up
    29
    ·
    4 hours ago

    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.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      10
      ·
      2 hours ago

      Powertoys seems to be the only thing keeping windows somewhat usable, I have no idea why they don’t include it in the build.

    • Mikina@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      2 hours ago

      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.

    • affenlehrer@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      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

    • Sundray@lemmus.org
      link
      fedilink
      English
      arrow-up
      57
      ·
      6 hours ago

      “Time to see who’s stopping me from deleting this file… svchost??? Goddamn it!”

  • ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    33
    ·
    5 hours ago

    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.

    • affenlehrer@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      You can use this performance view thing that comes with windows to search for file handles and the processes that own them

    • Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      5 hours ago

      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.

      • DrMartinu@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        13
        ·
        5 hours ago

        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.

    • Cousin Mose@lemmy.hogru.ch
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      4 hours ago

      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.

      • floofloof@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        4 hours ago

        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.

  • finitebanjo@piefed.world
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    2
    ·
    edit-2
    6 hours ago

    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.

    • Cousin Mose@lemmy.hogru.ch
      link
      fedilink
      arrow-up
      36
      arrow-down
      2
      ·
      5 hours ago

      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?”

      • filcuk@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        2 hours ago

        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, or just adding a control panel option, and it’s an absolute nightmare.

    • danA
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      4 hours ago

      The current UI is very different to the original UI though.

  • pedz@lemmy.ca
    link
    fedilink
    arrow-up
    7
    ·
    5 hours ago

    It’s one of the things that made me prefer using Linux a long long time ago. It’s nice to be able to rename, move, and delete files while they are used.