Check file is locked?
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>
> 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.
More information about the Python-list