Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > List open files

Reply
Thread Tools

List open files

 
 
Bruno GUERPILLON
Guest
Posts: n/a
 
      04-08-2008
Hi,

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

Regards,

Bruno.


 
Reply With Quote
 
 
 
 
Mike Driscoll
Guest
Posts: n/a
 
      04-08-2008
On Apr 8, 10:16 am, "Bruno GUERPILLON" <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Miki
Guest
Posts: n/a
 
      04-08-2008
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 <(E-Mail Removed)>
http://pythonwise.blogspot.com
 
Reply With Quote
 
Bruno GUERPILLON
Guest
Posts: n/a
 
      04-08-2008

"Mike Driscoll" <(E-Mail Removed)> a écrit dans le message de news:
c62d02f7-62c4-447d-a456-261fefb8b021...oglegroups.com...
> On Apr 8, 10:16 am, "Bruno GUERPILLON" <(E-Mail Removed)> 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


 
Reply With Quote
 
Bruno GUERPILLON
Guest
Posts: n/a
 
      04-08-2008

"Miki" <(E-Mail Removed)> a écrit dans le message de news:
2af7d536-eb72-4e6d-96ca-3c91455b06b9...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 <(E-Mail Removed)>
> http://pythonwise.blogspot.com


Thanks Miki,

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

Regards,


 
Reply With Quote
 
Méta-MCI \(MVP\)
Guest
Posts: n/a
 
      04-08-2008
Hi!

> OpenFiles.exe


OK, on a standard CPU/windows.
On a server, use: Net File

@-salutations
--
Michel Claveau

 
Reply With Quote
 
Méta-MCI \(MVP\)
Guest
Posts: n/a
 
      04-08-2008
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




 
Reply With Quote
 
Guillaume
Guest
Posts: n/a
 
      04-08-2008
Oh and don't forget to take care about saving correctly the Oracle
database ! ^^
(private joke *giggles* j/k )

Regards,
--
Guillaume
 
Reply With Quote
 
Mike Driscoll
Guest
Posts: n/a
 
      04-08-2008
On Apr 8, 10:56 am, "Bruno GUERPILLON" <(E-Mail Removed)> wrote:
> "Mike Driscoll" <(E-Mail Removed)> a écrit dans le message de news:
> (E-Mail Removed)...
>
> > On Apr 8, 10:16 am, "Bruno GUERPILLON" <(E-Mail Removed)> 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
 
Reply With Quote
 
Bruno GUERPILLON
Guest
Posts: n/a
 
      04-09-2008

"Guillaume" <(E-Mail Removed)> a écrit dans le message de
news: ftg58p$2fek$(E-Mail Removed)...
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Open a List of Files Fredrik Lundh Python 11 01-09-2008 02:40 PM
Re: how to open a file in some application using Tkinter i am usingTKINTER to create GUI application i want to know how to open a worddocument in open office or any other applicatio Fredrik Lundh Python 1 01-09-2008 10:40 AM
Re: Open a List of Files Fredrik Lundh Python 2 01-08-2008 12:04 PM
Difference Between List x; and List x(); , if 'List' is a Class? roopa C++ 6 08-27-2004 06:18 PM
How Can I Open or Extract CAB files That Doesn't Open w/WinZip, WinRAR nor the Windows CAB viewer? NoLikey Spam Computer Support 5 12-17-2003 11:12 PM



Advertisments