I have no idea why Windows 7 (and Vista) have decided that an Admin level user is not allowed to write files into Program Files, but apparently Windows knows better than I do what should happen in that folder.
Unfortunately, if you working with PhoneGap and building your app for BlackBerry, the default install locations for the BlackBerry WebWorks Packager is under Program Files and the PhoneGap build scripts copy the compiled COD files into the appropriate simulator folder under the webworks\simpacks folder.
After trying in vain to unset the readonly permissions on the simpacks folder under my normal account (which has admin privileges) I finally tried enabling the administrator account, logging in as administrator and then unsetting readonly on that folder. That didn’t work either. The Administrator user is able to run the build scripts just fine, but when I log out and back in as my normal user the folders are back to read only.
I even tried making my user the owner of those folders (per a blog post somewhere) and that didn’t work either. The PhoneGap build script (and just a regular copy command) get “access denied”.
I finally realize I just needed to run CMD as Administrator and my builds would work. So if you need to run PhoneGap build scripts in Windows 7 as a real user, just launch the Command Prompt as Administrator (right click on the Command Prompt icon and choose Run as Administrator). Now your builds will happily copy the compiled files to the simulator folder under Program Files.