6

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?

Shaun Luttin
  • 2,301

1 Answers1

2

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.