How to find a file or a device is currently used by which process or which program ?

Gabriel Genellina gagsl-py at
Tue Oct 10 10:31:26 CEST 2006

At Tuesday 10/10/2006 05:17, fdu.xiaojf at wrote:

>When I want to uninstall my usb disk on windows, the operating systems
>sometimes tells me the device is being used by other program. But I
>can't find which program is using it. Can I do this using python ?

I don't know with Python, but Process Explorer from will show you all open files from all running processes.

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

More information about the Python-list mailing list