I have Windows 7 64bit installed on a virtual box (the fact it is a virtual box shouldn't be relevant). I need to overwrite /Windows/System32/d3d9.dll but the system won't let me.
I've read the same "solution" on a lot of forums, except nobody mentions it doesn't work at all:
takeown -f filename
cacls filename /G username:F
which both succeed. But then, when I try to delete the file, I still get access denied. And I am doing all this in safe mode AND within CMD being run as administrator.
What is the working way to delete the file so I can replace it? (or directly overwrite it)