473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3420
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brad Tilley | last post by:
I was using Python to tar up some files each day in a directory by calling os.popen("/bin/tar.......). Everything was working well until the app that generated the files was set to generate a file...
4
by: Oyvind Ostlund | last post by:
I am not sure what the right syntax is here. So please help me out (started 2 days ago). I have a list of about 20 files that I want to read line by line into a 2D list. So the first dimension...
3
by: mallyonline | last post by:
Thank you for your previous help. I posted regarding listing the names of files held in a folder on the server and making the list appear clickable. This has now been accomplished. The...
3
by: Kriston-Vizi Janos | last post by:
Dear Mr. Kern, and Members, Thank you very much for the fast answer, my question became over-simplified. My source code is appended below. It uses two text files (L.txt and GC.txt) as input...
4
by: sam | last post by:
Hi all, Kindly have a look to the code given below ***************************************************************************** Public Function CountFiles(strDir As String, Optional SubDir As...
8
by: dmp | last post by:
What are Linked list? Please somebody show some ready made programs of linked list
1
by: antar2 | last post by:
Hello, Suppose this is a stupid question, but as a python beginner I encounter a lot of obstacles... so I would be very grateful with some help for following question: I would like to read...
36
by: pereges | last post by:
Hi, I am wondering which of the two data structures (link list or array) would be better in my situation. I have to create a list of rays for my ray tracing program. the data structure of ray...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.