in reply to Set file permissions using Perl in Windows?

I would punt and use cacls.exe (comes with Windows) or maybe the SetACL program (but I haven't used that at all).

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

    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

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

      echo y| cacls...

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