We have a directory that we cannot delete because...
Cannot remove item C:\myDir: The process cannot access the file 'C:\myDir\' because it is being used by another process.
Inside Resource Monitor > CPU > Associated Handles, a search for myDir shows that cmd.exe is using our directory.
Inside Process Hacker, running as administrator, our attempts to terminate cmd.exe are met with this:
Unable to terminate cmd.exe (PID 4656): An attempt was made to access an exiting process.
Beyond restarting the computer, how else can we kill this process and thereby delete or rename our directory?
STATUS_PROCESS_IS_TERMINATING, which is NTSTATUS 0xC000010A. All this is according to the "ntstatus.h" header file, which is included in the Windows SDK. – unforgettableidSupportsMonica Mar 20 '17 at 12:37I closed and re-opened process hacker and the process had closed. So quite possibly it's worth doing that first. It's not the first time it had happened on my server which had a program running and process hacker running for at least a few months.
– Matt Vukomanovic Aug 24 '19 at 16:53