[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::windows-nt

Title:Windows NT
Notice:See note 15.0 for HCL location
Moderator:TARKIN::LIN.com::FOLEY
Created:Thu Oct 31 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6086
Total number of notes:31449

5942.0. "Is there an NT utility to see who has a lock on a file?" by OTOOA::kap901.kao.dec.com::trimble () Mon Apr 21 1997 11:34

Is there a tool for NT which will allow you to see
what process or domain user has a file locked?

Thanks,

Jason Trimble

T.RTitleUserPersonal
Name
DateLines
5942.1TARKIN::LINBill LinMon Apr 21 1997 17:118
    re: OTOOA::kap901.kao.dec.com::trimble
    
    Hi Jason,
    
    Do you mean other than using the Server applet in Control Panel or
    double clicking on a System Name in Srvmgr in a domain?
    
    Bill
5942.2Yes, besides Server ManagerOTOOA::kap901.kao.dec.com::trimbleTue Apr 22 1997 12:317
Yes.  That method does not show the file in question
as being locked by anything.  Yet when I try to 
delete it, it fails saying it's open by another
process.

Jason

5942.3MARVIN::GOODWINPete GoodwinWed Apr 23 1997 02:206
    I've seen this - files that the system claims as being locked yet
    there's no way to find out what's locking it. Nothing shows up in the
    Server applet in the control panel. The only way I've found to get
    round locked files is to either reboot or rename the file!
    
    Pete.
5942.4I'd be interested in knowing how also...TARKIN::LINBill LinWed Apr 23 1997 03:116
    The server applet is only useful for connections to file made via the
    network I believe.  I haven't found a way to view lock information for
    connections from local processes to local disk resources.  Sorry for my
    misinterpretation of the base note.
    
    /Bill
5942.5These guys make good stuffnova05.vbo.dec.com::BERGERWed Apr 23 1997 04:098
This might be a job for NT Filemon, see
http://www.ntinternals.com/ntfilmon.htm

Note that I've had personally mixed experience with this thing, going 
from instant blue screen crash to not doing anything useful, so 
beware, don't install it on a production server. YMMV

	Vincent
5942.6It is a production serverOTOOA::kap901.kao.dec.com::trimbleThu Apr 24 1997 13:2514
RE: -1

That utility simply logs file activity.  It doesn't look like it 
actually tells who did the activity, at least not in their 
screen shot.  Besides, this *IS* a production server and I can't
just reboot it on a whim, nor can I run programs which may bring
it down.  I thought there would be a simple lovely utility (even
in the resource kit) that might answer my problem, but I guess 
it's looking more like I'll have to schedule it for a reboot.

Regards,

Jason