in reply to Set file permissions using Perl in Windows?

As an update, an alternative to the echo y| stuff is to use xcacls.exe from the Windows Resource Kit - this version does not prompt. See http://support.microsoft.com/kb/318754.

At Windows Vista and Windows 7 the cacls program still works but is deprecated in favour of the more powerful icacls program.