473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8362
"Juan Romero" <ju*********@bo wne.com> wrote in
news:Ou******** ******@TK2MSFTN GP09.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/
"Programmin g 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*********@bo wne.com> wrote in
news:Ou******** ******@TK2MSFTN GP09.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/
"Programmin g 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*********@bo wne.com> wrote in news:uiGv9MRPEH A.2128
@TK2MSFTNGP11.p hx.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/
"Programmin g 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*********@bo wne.com> wrote in news:uiGv9MRPEH A.2128
@TK2MSFTNGP11.p hx.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/
"Programmin g is an art form that fights back"

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

Nov 20 '05 #5
"Juan Romero" <ju*********@bo wne.com> wrote in news:uB3kpyRPEH A.3596
@tk2msftngp13.p hx.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/
"Programmin g 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
14706
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
2
2818
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 fopen, but due to my lack of knowledge with gdb, etc., I don't know how to go any further with the debugging from there. I'm running gcc under cygwin. Sorry for the lack of information. Here's the code in question, please no comments on...
1
1195
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 locking them. -Darrel
5
3948
by: Adrian | last post by:
Is there a way to lock records and/or files in multi user application, using C#? Adrian.
15
5236
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 process. How does one maintain file locking between sibling threads? - Matt
4
4520
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 child apps of an IIS application and can be used by multiple users during the application life cycle and for multiple page loads for the same or different page under a root application. What I don't understand and need to know is whether that...
2
1022
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 I have it so that the same file can be open in read mode by more than one person or could Window's file locking system get in the way? Thanks, Sam
82
3672
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. Let's name the update method as doUpdate and stl::map read methods as getData and copyData. Since stl::map is not thread-safe, we should do synchronization by ourselves. A usable solution is to create a boost::mutex::scoped_lock object in all above...
5
1091
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 now, and still, people making _the_ standards never decided to include such a function. Even in POSIX it was included only in recent versions, mostly not fully supported yet.
0
8356
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
8869
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
8551
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
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
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...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.