473,398 Members | 2,165 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,398 software developers and data experts.

Find out what program is locking a file

Guys,

Sometimes when you want to open a file, the file is locked for editing for
some reason. You are able to see the contents of the file (depending on the
program you are using) but you are not able to save your changes to it. I am
looking to make a program that can tell me what program is locking the file.

Does anyone know how to do this?

Thanks!
Nov 20 '05 #1
6 8347
"Juan Romero" <ju*********@bowne.com> wrote in
news:Ou**************@TK2MSFTNGP09.phx.gbl:
for some reason. You are able to see the contents of the file (depending
on the program you are using) but you are not able to save your changes
to it. I am looking to make a program that can tell me what program is
locking the file.

Does anyone know how to do this?


www.sysinternals.com
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 20 '05 #2
Thanks for replying. I could not find any application to do that at
SysInternals.

Any other ideas out there?

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
"Juan Romero" <ju*********@bowne.com> wrote in
news:Ou**************@TK2MSFTNGP09.phx.gbl:
for some reason. You are able to see the contents of the file (depending
on the program you are using) but you are not able to save your changes
to it. I am looking to make a program that can tell me what program is
locking the file.

Does anyone know how to do this?


www.sysinternals.com
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/

Nov 20 '05 #3
"Juan Romero" <ju*********@bowne.com> wrote in news:uiGv9MRPEHA.2128
@TK2MSFTNGP11.phx.gbl:
Thanks for replying. I could not find any application to do that at
SysInternals.

Any other ideas out there?


Look for FileMon, they used to have it there. I cannot imagine they have
removed it.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 20 '05 #4
Thanks again.

That program still doesn't help. It shows me what program is trying to
access the file, but it doesn't tell me who is holding the file hostage.

Any other ideas?

Thanks!

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
"Juan Romero" <ju*********@bowne.com> wrote in news:uiGv9MRPEHA.2128
@TK2MSFTNGP11.phx.gbl:
Thanks for replying. I could not find any application to do that at
SysInternals.

Any other ideas out there?


Look for FileMon, they used to have it there. I cannot imagine they have
removed it.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/

Nov 20 '05 #5
"Juan Romero" <ju*********@bowne.com> wrote in news:uB3kpyRPEHA.3596
@tk2msftngp13.phx.gbl:
That program still doesn't help. It shows me what program is trying to
access the file, but it doesn't tell me who is holding the file hostage.


But a program has to access a file to hold it hostage no? So if you see who
still has the file open, doesnt that answer your question?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
Nov 20 '05 #6
Hi Kudzu,

Thank you for the link, it looks interesting

Cor
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: Mister Zimbu | last post by:
I'm having problems with a program I wrote- when it comes time to output a file, the call to fopen locks up and I have to break the program manually. I've pinpointed the actual stopping point to...
1
by: darrel | last post by:
Is there any tool to check to see what, at any given time, is locking a particular file? We're having an issue where some of our XML file become locked and we're tryign to figure out what is...
5
by: Adrian | last post by:
Is there a way to lock records and/or files in multi user application, using C#? Adrian.
15
by: Matt Brandt | last post by:
I am trying to get multiple threads to lock specific regions of a file. However, since each thread has the same PID, it appears that a lock by one thread does not block another thread from the same...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
2
by: Sparky | last post by:
Hello! I am writing some software that will have many users accessing the same file resource at once for reading purposes only. I am programming on (Ubuntu) Linux and my question is in Windows, can...
82
by: Bill David | last post by:
SUBJECT: How to make this program more efficient? In my program, a thread will check update from server periodically and generate a stl::map for other part of this program to read data from....
5
by: Timothy Madden | last post by:
Hello I see there is now why to truncate a file (in C or C++) and that I have to use platform-specific functions for truncating files. Anyone knows why ? I mean C/C++ evolved over many years...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.