On Apr 8, 10:56 am, "Bruno GUERPILLON" <[EMAIL PROTECTED]> wrote: > "Mike Driscoll" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > > On Apr 8, 10:16 am, "Bruno GUERPILLON" <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list