Hello, I am using a batch script to replace several windows files, and I have found I am unable to modify bootmgr at all from the command prompt (run as admin). I can replace other files like winload.exe, for example. Most of the files are in C:\windows\system32, but bootmgr is on the system reserved partition, which I have mapped to Q:. If I run 'dir /a' from cmd, I can see all the hidden system files in Q:, but I cannot modify them. I've used takeown /f, and icacls /grant Administrator:f, but I keep getting access denied when I try to overwrite it. I am an administrator on the computer. I am able to manually replace it using explorer, but just cannot seem to do it with the command prompt. Any help would be appreciated.
I am running windows 7 enterprise, if it helps.
Aaron