in reply to Win32::Perms Remove method

I hate to be a total dork, but do you know you can do this using the windows(file) explorer? You can pick a folder, right click and choose properties, and recurse thru the folder and all files with the changes. Why beat yourself up writing a script when you can do it with a couple mouse manuevers?

And the same thing goes for the CACLS.EXE command which you commented out. It can recurse, and do everything you want, so why? you never explain to us this little point...


Replies are listed 'Best First'.
Re^2: Win32::Perms Remove method
by Discipulus (Abbot) on Jun 15, 2004 at 08:10 UTC
    with cacls.exe u cannot substitute account.. with Xcopy u cannot copy between server local user's acl.. I need to take dirA on srvA and substitute usrLocal-A with usrDOMAINB, then copy dirA su servB and substitute in the acl usrDOMAINB with usrLOCAL-C ... this with some giga of file... greetings Lor*
Re^2: Win32::Perms Remove method
by dfaure (Chaplain) on Jun 15, 2004 at 07:10 UTC
    you can do this using the windows(file) explorer

    You're right, but you may not have direct access to the computer handling the files. Eg., the code is extracted from a web-shared data storage app.

    (Then we may ask ourself about the viability of such a service on Win32 :-), but this is not the purpose here)

    HTH, Dominique