Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identify process PID in Windows by resource lock

Status
Not open for further replies.

WebSurfinMurf

Programmer
Oct 18, 2002
1
US
The scripts I manage deletes directory trees and recreates with new content nightly.

I am consistantly running into problems where a rogue program or process is holding a file or directory locked. Under UNIX this is not a problem, since files/directories can be deleted even if in use.

Under Windows this is becoming a problem.

How can I identify by "resource lock" what PID is associated with the lock?

Example:
What process PID(s) is the file c:\dir\temp.txt being used?
 
I don't even think that MS bundles that kind of utility
in userspace much less that tcl has a hook that deep in the win32 system. The closest I can find is tlist and that's not close.

If you find out something let us know.
In the meantime you could try comp.lang.tcl.

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top