handle readme.txt~ts~
Friday, June 08, 2007
Detecting the process using/locking a file
In Windows, if a file is being used, normally user cannot delete it. But there are cases, especially during development and/or troubleshooting, where a file needs to be deleted or renamed. The issue here is that deleting a locked/used file is not allowed in Windows. Windows Explorer does not give even a slight hint as to who has the lock on the file.
Fortunately, Mark Russinovich of Microsoft, developed a tool to list the process that is having a lock on the file. The name of the tool is "handle" and can be downloaded from the site. If you have a file readme.txt and you want to delete it and for some reason their is a rouge application getting hold of it. To get the process name of the application that's using it, just issue the command:
Subscribe to:
Post Comments (Atom)
CPP Quick Guide
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates se...
No comments:
Post a Comment