Windows: Killing every process that stops a folder from being deleted

333 views Asked by At

I need to delete a folder under Windows. Sometimes there are processes who prevents me from deleting said folders (their current directory is the folder, they are using one the files in the folder etc)

I'm looking for a way to loop over all processes that are using any files in my directory - then I will kill them and delete the folder.

I'm coding in Python but I guess I should be looking for some Windows Internals to do the job...

0

There are 0 answers