At my work we recently made the move from XP to Windows 7, and as a developer, it's been a nightmare. I develop for embedded system, so our build process might be a little bit different. Our build process is extremely complicated, and generates a lot of copies of files, which need to be moved and copied around. The problem is that a built will often fail because it does not have permission to copy a file over.
On my entire build directory I would run
takeown /F * /R /D Y
icacls . /T /Grant <userid>:F
From the root build directory, but I still have issues copying files (cannot create regular file 'bla.bla': Permission denied). So I am forced to manually touch the file, set the mode to +www, and build again.
My question is if there is a simple way to get a tree of directories so that any user/application can create/modify all files within it. icacls doesn't seem to cut it.
EDIT: Extra information: Windows x64, GNU make, using a bat file to set environmental variables before calling make