in reply to Re: Set file permissions using Perl in Windows?
in thread Set file permissions using Perl in Windows?

I'd be willing to use cacls.exe assuming it's available in Win2K and Vista (I will test this soon).

Assuming it is, how would you force it to not ask "Are you sure?"?

edit: the command I'm calling is this: cacls.exe "C:\Program Files\MyDir" /T /G SYSTEM:F Administrators:F

Replies are listed 'Best First'.
Re^3: Set file permissions using Perl in Windows?
by wilsond (Scribe) on Jan 10, 2009 at 17:03 UTC

    Answered my own question: http://support.microsoft.com/kb/135268

    echo y| cacls...

    edit: the y and the pipe must be touching...