Anybody knows how to programatically delete a file currently in use without resorting to deleting it on the next reboot?
One idea is to enumerate all open handles of all processes and force them to close the handle to your target file, then deleting it afterwards. Unfortunately, it's too messy.
I'm looking for some undocumented or easier way to do this. Anyone?