I am trying to add an entry to my Windows hosts file and I"m having issues. I have already gotten around the Admin permissions issue by opening Notepad as and administrator and then opening the file via Notepad. However, I'm getting a new warning saying that the file is in use by another program and therefore can't be modified.
How can I get around this and update my file?
NOTE: The exact wording of the message is:
The process cannot access the file because its being used by another process.
Not sure if this makes a difference but I do have XAMPP installed, but Apache and Mysql are not running.
EDIT: I have tried looking for the process which might be locking the hosts file with suggestions here Find out which process is locking a file or folder in Windows but it doesn't even list my file as being locked!