If you need a command-line tool that you can include in your batch files to change the NTFS permissions of files or folders, you can use the following tool from Microsoft.
Download iCACLS : http://support.microsoft.com/kb/919240
Article from ss64: http://ss64.com/nt/icacls.html
For example, the command below gives
icacls c:\inetpub\wwwroot\files\ /grant mary:(M,WDAC)
NOTE: xcacls is DEPRECATED. Please use iCACLS instead which comes bundled with Microsoft Windows 2003.
Article: http://support.microsoft.com/kb/318754
Download tool here: http://www.microsoft.com/downloads/details.aspx?FamilyID=0ad33a24-0616-473c-b103-c35bc2820bda&DisplayLang=en
Other links: