• @tychosmoose@lemm.ee
    link
    fedilink
    222 months ago

    Process Explorer (the sysinternals tool) will show you which process has the handle open to the file.

    • @Jtee@lemmy.world
      link
      fedilink
      English
      62 months ago

      FWIW, it’s usually Windows Installer, Windows Explorer, or some other system task. If you open a command prompt and ready the del command, you can kill Windows Explorer and then run your delete.

  • Midnight Wolf
    link
    fedilink
    English
    7
    edit-2
    2 months ago

    I would say ‘just reboot’ but because I’m petty and also because I’ve had shit not release even after a reboot:

    • Boot a live iso
    • Mount the drive
    • Delete that shit with the utmost prejudice
    • Reboot
    • Sunglasses (yeaaaaaaaaahhhhhhhh)

    E: fancy formatting

  • @merthyr1831@lemmy.ml
    link
    fedilink
    English
    42 months ago

    first lmao

    second, I’d get powertoys for windows, it has a feature that shows you what processes are holding onto a particular file/directory so you can kill the process and get the file dealt with.

    • irelephant [he/him]🍭OPM
      link
      fedilink
      English
      22 months ago

      I rebooted, which fixed it. Turns out, the folder was open in vscode, even though vscode wasn’t running.

  • @AnonymousFish@lemmy.world
    link
    fedilink
    32 months ago

    I think I’ve had a similair problem before! Turning off the “preview pane” might help if you have that option enabled. I’ve had trouble with renaming files that were also open in the preview pane in the past, but turning it off fixed the issue

  • @Cort@lemmy.world
    link
    fedilink
    12 months ago

    Looks like a restart fixed it, but I think it refused to delete since you had the folder open. Your task manager showed 2 instances of windows explorer. I bet it was minimized and got overlooked

    • irelephant [he/him]🍭OPM
      link
      fedilink
      42 months ago

      No, the first one is the explorer instance that I tried to delete the folder in, the second is the popup in the screenshot.

  • @over_clox@lemmy.world
    link
    fedilink
    -22 months ago

    Almost seems like you might have some sort of virus or malware.

    There’s a magic registry key that can force delete folders and files before Windows has even finished booting. It’s intended to be used during Windows updates, but when used creatively, can perform some brute force fixes.

    This link isn’t exactly relevant, but I’m not home right now to dig that deep into the registry to offer that sort of advice at the moment.

    https://www.solveyourtech.com/how-to-force-delete-a-file-windows-11-step-by-step-guide/

    If that doesn’t help, hit me up later and I’ll do my best to turn the registry inside out…