List open files
Mike Driscoll
kyosohma at gmail.com
Tue Apr 8 12:20:02 EDT 2008
On Apr 8, 10:56 am, "Bruno GUERPILLON" <b... at bg.fr> wrote:
> "Mike Driscoll" <kyoso... at gmail.com> a écrit dans le message de news:
> c62d02f7-62c4-447d-a456-261fefb8b... at e67g2000hsa.googlegroups.com...
>
> > On Apr 8, 10:16 am, "Bruno GUERPILLON" <b... at bg.fr> wrote:
> >> Hi,
>
> >> I'd like, in a WIN32 environment, list all open files.
> >> Anyone got a clue how to do this ?
>
> >> Regards,
>
> >> Bruno.
>
> > XP comes with a utility called OpenFiles.exe which supposedly gives
> > this functionality. You can use Python's subprocess command to run it
> > and parse its output.
>
> > Mike
>
> Thanks for the answer Mike.
> Well, Openfiles.exe list only file opened vi Network.
> I'd like to know the local opene files list.
>
> Regards
There is a /Local flag that's supposed to show local files that are
open. I've never used this program myself though. You might be able to
use WMI somehow.
Mike
More information about the Python-list
mailing list