Windows File Access Denied
Posted
by
Tom
on Super User
See other posts from Super User
or by Tom
Published on 2012-10-26T12:46:41Z
Indexed on
2012/10/26
17:06 UTC
Read the original article
Hit count: 268
windows-7
|file-permissions
I seem to have a general problem with "access denied on Windows". It manifests itself every time if e.g:
- My bat file calls a compiler creates a file on disk
- My bat file renames a file
- But I also have files downloaded (FireFox) to Windows desktop where Windows is giving me "access denied" if I try delete the file.
- Tried disable AVG + make exception in AVG resident shield
(I have tried checking with Task Manager + Winternals process explorer that it is not process running still running that should cause the locks.)
- Windows 7.
- My user account is an administrator.
- All files are created by same user account.
The problem is recent, but some things I first noticed yesterday (when I started calling .bat files again which I have used for many years)
I have tried:
- Starting e.g. Windows Explorer with "run as administrator", but that makes no difference
- right-click - properties - security and changes permissions/ownership (I also get "access denied" when trying this so this does not help)
Here is a ascreenshot if I try change security of a "locked" file. (The problem here is the locking occurs continously every time the file is created)
!
If I click on, it states I am not the owner? Which baffles me as I just created it. (Yes, through a .bat file calling executables that create the file. But all running under my administrator user account. Interestingly after having this dialog open, the file somehow sometimes suddenly seem to allow me delete it)
© Super User or respective owner