C
cactus
Does anyone know of a tool that indicates which program or process is
using a specific file?
TIA
using a specific file?
TIA
cactus said:Does anyone know of a tool that indicates which program or process is
using a specific file?
Yes, it reports on _all_ files *currently* held open by the process.Would that include 'data' files, i.e., other that .exe, .dll,
etc.?
Gary said:Yes, it reports on _all_ files *currently* held open by the process.
Like /lsof/ in the UNIX world.
It does? That would be nice. However, I'm using Millennium Editon and
right now have WordPerfect running with a document open that I created
the day before yesterday. I also have Process Explorer v.8.51 running,
but I can't find any listing of my document within it, although it
shows WP running. Can you tell me where to find the listing for the
document?
Highlight WP in the top window and double-click, then look at theJohn Corliss said:It does? That would be nice. However, I'm using Millennium Editon and
right now have WordPerfect running with a document open that I created
the day before yesterday. I also have Process Explorer v.8.51 running,
but I can't find any listing of my document within it, although it
shows WP running. Can you tell me where to find the listing for the
document?
Roger said:John Corliss writes
Highlight WP in the top window and double-click, then look at the
Command line?
Works for Notepad anyway. It may run out of sight but can be brought
back into view with a little tickle.
B. R. 'BeAr' Ederson said:John Corliss wrote:
[Process Explorer]
It does? That would be nice. However, I'm using Millennium Editon and
right now have WordPerfect running with a document open that I created
the day before yesterday. I also have Process Explorer v.8.51 running,
but I can't find any listing of my document within it, although it
shows WP running. Can you tell me where to find the listing for the
document?
<BG> Yes. The suggested Process Explorer is the wrong tool for this
task. Maybe you just put your critics into a smooth question? </BG>
John Corliss said:'Fraid that doesn't work in Process Explorer for WordPerfect at least.
That's an easy one - WP usually doesn't hold a document's file open, soJohn said:It does? That would be nice. However, I'm using Millennium Editon and
right now have WordPerfect running with a document open that I created
the day before yesterday. I also have Process Explorer v.8.51 running,
but I can't find any listing of my document within it, although it shows
WP running. Can you tell me where to find the listing for the document?
It does? That would be nice. However, I'm using Millennium Editon and
right now have WordPerfect running with a document open that I created
the day before yesterday. I also have Process Explorer v.8.51 running,
but I can't find any listing of my document within it, although it shows
WP running. Can you tell me where to find the listing for the document?
John Corliss said:Thanks for pointing this one out. Downloading.
Highlight WP in the top window and double-click, then look at the
Command line?
Works for Notepad anyway. It may run out of sight but can be brought
back into view with a little tickle.
Thanks for that - quite an interesting thread this is.B. R. 'BeAr' said:On Sat, 9 Oct 2004 09:58:34 +0100, Roger Hunt wrote:
[Process Explorer]Highlight WP in the top window and double-click, then look at the
Command line?
Works for Notepad anyway. It may run out of sight but can be brought
back into view with a little tickle.
The command line view is exactly what it sounds like. Nothing more or
less. It shows if the program has been started with a preselected file
to open. That's always the case if you're double clicking on a document
within Explorer (or another shell). Other methods of execution grant
you still more possibilities to include more options. (Like a /r switch
to open a file read only, for instance.)
It is praxis since the old days of DOS that the command line (with which
a program has been started) is stored inside the environment of the
program (a special branch of memory which the program gets on execution).
That's the position which Process Explorer reads.
Any file opened later (via file->open or such methods) is out of scope
for Process Explorer. The only exception is if the program holds a
document file open all the time. Then (and only with the newest version
of Process Explorer) you are able to see this document, too.
(snip)omega said:I couldn't survive without Filemon.
(One of the activities where it regularly comes into service for me,
its from my moving around programs, and their dependencies, which I
do constantly -- and occasionally one of them will start to complain,
so I then use Filemon to find out what they want, what they use.)
Warning. Just like Regmon, focus seriously on your filters. Else you
could land into one of those crazed 5meg-per-minute logs.
Gert said:To be sure it isn't listed somewhere you can use the Find -> Handle
option and type some part of the filename opened by WP.
Gary said:That's an easy one - WP usually doesn't hold a document's file open, so
procexp _can't_ report it as being open.
To elucidate:
WP opens the document file
WP reads the contents into memory, and possibly a temporary file
WP closes the document file
When you close the document, or when autosave happens:
WP opens the document file
WP writes out the file (or sometimes just the changes)
WP closes the file
Most text- and file-processing programs work in this manner.
John said:Didn't work. Anyway, if I don't know what files a progam has open, how
could I search for them using this method?>