473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3460
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrot e:
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.as px), you might
find stuff there that will help you.

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

"Mike Driscoll" <ky******@gmail .coma écrit dans le message de news:
c6************* *************** **...legroup s.com...
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrot e:
>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*********@gm ail.coma écrit dans le message de news:
2a************* *************** **...legroups .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.as px), you might
find stuff there that will help you.

HTH,
--
Miki <mi*********@gm ail.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.frwrot e:
"Mike Driscoll" <kyoso...@gmail .coma écrit dans le message de news:
c62d02f7-62c4-447d-a456-261fefb8b...@e6 7g2000hsa.googl egroups.com...
On Apr 8, 10:16 am, "Bruno GUERPILLON" <b...@bg.frwrot e:
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.INVA LIDa écrit dans le message de
news: ft***********@b iggoron.nerim.n et...
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
5823
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 every two seconds for nine hours each day (16,200 files each day). After this I began getting this error: "Argument list too long" This would happen from the script or from the command line invoking tar natively. So, I wrote my way around...
4
1832
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 will be each file, and the second every line in that file. I tried to do something like this: files_and_lines = filenumber = 0
3
2917
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 files are listed - The files are clickable -
3
8547
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 and merges them. Please find these two files here: http://kristonvizi.hu/L.txt http://kristonvizi.hu/GC.txt
4
1789
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 Boolean) As Long With Application.FileSearch .NewSearch .LookIn = strDir
8
718
by: dmp | last post by:
What are Linked list? Please somebody show some ready made programs of linked list
1
178
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 files, of which the complete filepaths are mentioned in another textfile. In this textfile (list.txt) are for example the following paths:
36
2906
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 looks like this: typedef struct { vector origin; /* vector is an array of 3 doubles */
0
30248
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 a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them carefully: HKCU = HKEY_CURRENT_USER HKLM = HKEY_LOCAL_MACHINE
0
9537
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.