News for hackers. Stuff that matters.
Re:Windows is the strangest, or hardest, operating system to... by cshokie on Wednesday November 30, 2022 @10:36AM (#33802163)
Windows has the concept of OpLocks on files, which open the file but can be broken by other access. When used properly that should prevent antivirus from ever preventing file deletion. The deletion would break the lock that antivirus has open.
Re:Windows is the strangest, or hardest, operating system to... by mike_hearn on Wednesday November 30, 2022 @10:57AM (#33802557)
But apps have to use it. An example of an app that apparently doesn't is Explorer. Another example: cmd.com. So if you have a shell or explorer window opened in a directory, and an app tries to delete or move it, that app will die. It might be better for Explorer to notice and go up to the next nearest available directory.
Re:Windows is the strangest, or hardest, operating system to... by jaywalk on Wednesday November 30, 2022 @01:12PM (#33804948)
> It might be better for Explorer to notice and go up to the next nearest available directory.

But... that's what it does?

Re:Windows is the strangest, or hardest, operating system to... by mike_hearn on Thursday December 01, 2022 @07:04AM (#33815176)
At least last year I was seeing problems where having Explorer open in a directory would block an app from moving or deleting that directory. So if it was using oplocks then, it didn't seem to be working.