469,292 Members | 1,350 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,292 developers. It's quick & easy.

List open files

Hi,

I'd like, in a WIN32 environment, list all open files.
Anyone got a clue how to do this ?

Regards,

Bruno.
Apr 8 '08 #1
9 3258
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrote:
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
Apr 8 '08 #2
Hello Bruno,
I'd like, in a WIN32 environment, list all open files.
Anyone got a clue how to do this ?
Have a look at the sysinternals suite (http://technet.microsoft.com/en-
us/sysinternals/0e18b180-9b7a-4c49-8120-c47c5a693683.aspx), you might
find stuff there that will help you.

HTH,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com
Apr 8 '08 #3

"Mike Driscoll" <ky******@gmail.coma écrit dans le message de news:
c6**********************************...oglegroups.com...
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrote:
>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
Apr 8 '08 #4

"Miki" <mi*********@gmail.coma écrit dans le message de news:
2a**********************************...oglegroups.com...
Hello Bruno,
>I'd like, in a WIN32 environment, list all open files.
Anyone got a clue how to do this ?
Have a look at the sysinternals suite (http://technet.microsoft.com/en-
us/sysinternals/0e18b180-9b7a-4c49-8120-c47c5a693683.aspx), you might
find stuff there that will help you.

HTH,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com
Thanks Miki,

Well, i think i'll use handle.exe from sysinternals and parse the input.

Regards,
Apr 8 '08 #5
Salut !

Finalement, tu as obtenu plus de réponses sur le NG français.
Comme quoi, la vérité n'est pas toujours ailleurs...

@+
--
Michel Claveau


Apr 8 '08 #6
Hi!
OpenFiles.exe
OK, on a standard CPU/windows.
On a server, use: Net File

@-salutations
--
Michel Claveau

Apr 8 '08 #7
Oh and don't forget to take care about saving correctly the Oracle
database ! ^^
(private joke *giggles* j/k :))

Regards,
--
Guillaume
Apr 8 '08 #8
On Apr 8, 10:56 am, "Bruno GUERPILLON" <b...@bg.frwrote:
"Mike Driscoll" <kyoso...@gmail.coma écrit dans le message de news:
c62d02f7-62c4-447d-a456-261fefb8b...@e67g2000hsa.googlegroups.com...
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrote:
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
Apr 8 '08 #9

"Guillaume" <gg*****@NOSPAM.gmail.com.INVALIDa écrit dans le message de
news: ft***********@biggoron.nerim.net...
Oh and don't forget to take care about saving correctly the Oracle
database ! ^^
(private joke *giggles* j/k :))

Regards,
--
Guillaume
Sure Guillamne and dont forget to answer the right questions *grin*

Bruno.
Apr 9 '08 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Brad Tilley | last post: by
4 posts views Thread by Oyvind Ostlund | last post: by
3 posts views Thread by Kriston-Vizi Janos | last post: by
8 posts views Thread by dmp | last post: by
1 post views Thread by antar2 | last post: by
36 posts views Thread by pereges | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.