WebSurfinMurf
Programmer
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 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?