8 ms·
Windows (at least NTFS) does allow you to delete files in use as long as it has been opened with a sharing mode of FILE_SHARE_DELETE. Unfortunately most regular
by shadowfox 10y ago
Windows (at least NTFS) does allow you to delete files in use as long as it has been opened with a sharing mode of FILE_SHARE_DELETE. Unfortunately most regular programs don't do this.
An exception to this is memory mapped files as they are not allowed to be deleted that way. Executables are executed in Windows by memory-mapping them; so runnning programs are hard to delete.
- piscisaureus 10y agoYes, but as long as the file is openen by another process... - You can't delete the parent directory - You can't create a new file with the same name ... which makes that flag quite useless.