4

This question already has an answer here:

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?

marked as duplicate by Community Mar 2 '17 at 1:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

It must be an unkillable process. Try a Google search for [ unkillable process ], or check out the thread "How can I kill an unkillable process?" and the solutions mentioned there. Or, as you mentioned, you could restart the machine.

  • In my question a duplicate of the answer to which you referred me? – Shaun Luttin Mar 2 '17 at 1:02
  • 1
    Your question is indeed a duplicate of the unkillable-process question. But Jeff Atwood writes on the official Stack Exchange blog that some duplication is good, and I agree. – unforgettableid Mar 2 '17 at 1:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.