I first came across this error when trying to write a program in Java that executes a .EXE that is packaged within the .JAR. At first I thought the issue was related to my program, or Windows 7 in general but after testing on two other Windows 7 machines, I can conclude that it is specific to my laptop.
Basically, I get an access denied message whenever I try to execute a program in "C:\Users\Andy\AppData\Local\Temp", even though I am using an Administrator account. I have looked at the permissions for the folder and there are only entries for Andy, and the Administrator, neither of which are inherited. And the check box that says inherit permissions from parent directory is disabled, and not ticked.
Any ideas what may be going wrong?
UPDATE: I've just logged in to the Built-In Administrator account and given my account ownership of the folder (I couldn't do it from my account), and now I can execute programs now. However, I would be interested in why this would have happened and how else I could have solved the issue.