How to know the process that blocked a file in windows, e.g.: when trying to delete a file that is in use, how to know the process that using that file?
Use Microsoft/Sysinternal's ProcessMonitor. Used to be file FileMon but I think everything is merged in ProcessMonitor now.