Open
Description
Hey, now, if I'm trying to remove some leftovers which are in use and can't be killed (e.g. some libraries could be loaded within explorer.exe) - I just see a standard Windows dialog about folder or file can't be removed.
Would be nice to put files which can't be deleted (running processes or loaded dll libraries) to the delete-on-reboot queue.
The registry key HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations is used for that.
And MoveFile API too.
Here is a C# example:
https://stackoverflow.com/questions/6077869/movefile-function-in-c-sharp-delete-file-after-reboot