I'm struggling to edit an config file for a webserver. The file is a text file, and I can open it in a text editor, but not save it. When I try to save it, it says that another application is using it, but I haven't started the webserver yet.

Is there a way that I can see what process that has a lock on the textfile, or why I can't save the file? I am logged in as adminstrator, and the OS is Windows Vista.

link|improve this question

feedback

2 Answers

up vote 5 down vote accepted

Use LockHunter. It is similar to Unlocker which was my favorite for a long time, but LockHunter works for both 32bit and 64bit OS unlike Unlocker which only works on 32bit.

link|improve this answer
Thanks, LockHunter was a great tool! But the worst thing was that there was no locks on the file. So there must be another problem with my file. Maybe permissions, but I'm administrator. – Jonas Jul 21 '10 at 21:48
The file may be corrupt too. – typoknig Jul 21 '10 at 23:06
feedback

You could use ProcessExplorer for that. Just open it search for the file name. It can also close the file (right Click > close handle).

link|improve this answer
Thanks. I installed ProcessExplorer but when I search on "DLL or Handles" on the file, I get no results. Is there another way to search? Or maybe there is something else that is wrong. – Jonas Jul 21 '10 at 21:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.