5 ms·
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 p
by cshokie 4y ago
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.
- mike_hearn 4y agoBut 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.
- jaywalk 4y ago> It might be better for Explorer to notice and go up to the next nearest available directory. But... that's what it does?
- mike_hearn 4y agoAt 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.