# Windows: How do I remove a file's ACL, and just let it inherit the ACL on the containing directory?

Scenario: I unpack a file into a temp directory.

Then I movve the file into a different directory. I want the file ACL to only include the perms stipulated in the new containing directory. How can I make that happen?

In UI, and in command line would be good. icacls?

-
ICACLS "C:\path\to\folder" /reset /T /C
ICACLS "C:\path\to\folder" /inheritance:e /T /C
On Windows XP, I'm getting Invalid parameter "/inheritance:e", any idea? (I've installed icacls a couple of weeks ago, so I don't think upgrading would help). –  maaartinus May 14 '11 at 15:53