I have a WAMP that writes (very often) the logs in a file.
If I delete that file (using Shift + Delete) it disappears for a moment, then it appears back (having the same size, not 0).
When I try to open it with Notepad it says:
Access denied
When I try to open it with Notepad++ it says:
file doesn't exist. Create it?
If I select "Yes" it shows:
Cannot create the file "file".
When I run from cmd:
type file
it shows:
Access is denied.
When I run from cmd:
dir /Q
it shows
...
for that file, while for a normal file it showsBUILTIN\Administrators
(where/Q
meansDisplay the owner of the file.
).When I restart the server, the file is deleted.
Questions:
- What is the status of this file? (it has to have a special status if trying to access it has a different behavior)
- How can I change this status to a consistent state? (to be readable)
- How does delete work in this case? Is it placed into a queue and executed only after the file is "released"?