Check file is locked?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Jul 9 09:53:42 EDT 2009


En Thu, 09 Jul 2009 07:53:29 -0300, Rajat <rajat.dudeja at gmail.com>  
escribió:

> Thanks Tim for the details. Just further on this, my whole idea is to
> close the wordpad / notepad application so that I can delete the file
> and the directory where this file resides.
>
> With notepad it is no more a problem. But I'm concerned about the
> wordpad now.

I don't see Wordpad keeping the file open either.
If you can't remove the file, use "handle.exe filename.txt" to discover  
which process is holding it open, as Tim already explained.

-- 
Gabriel Genellina




More information about the Python-list mailing list