This might come in handy if you need to find out which process is locking an exe/dll file:
tasklist.exe /m [filename]
What is does :
quote “Lists all tasks currently using the given exe/dll name. If the module name is not specified all loaded modules are displayed.“
