Re: Recursively list a folder with VBScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marco Shaw (marco_at_Z.nbnet.nb.ca)
Date: 03/01/04


Date: Mon, 01 Mar 2004 14:31:11 GMT


> Your pseudocode above implies that all of the files are to have the same
> permission applied. Do you really need to do this to all the files that do
> not already have this permission? Why not give all the files that
permission
> without worrying about which are out of compliance? Seems to me that cacls
> or xcacls allows you to set permissions on a whole set of files at one
shot.
> Seems to me that would be simpler and faster.

I agree. My root problem is strange where some files will just lose the
perms... I can't explain it. From Explorer, if I remove/readd the perms to
the folder, by inheritance, all the files/folders take the perms again, but
if I use cacls on the root folder to remove/readd the perms, the problematic
file will not take the perms properly. I have to use cacls to readd the
perms directly on the affected file.

I'm just trying to automate this process with an ASP front-end interface for
my tier 1 people...

Marco



Relevant Pages

  • RE: Windows 2000s Everyone permission
    ... Subject: Windows 2000's Everyone permission ... Resource Kits and the MCSE training kits. ... > perms and/or NTFS perms. ...
    (Focus-Microsoft)
  • Re: Windows 2000s Everyone permission
    ... Subject: Windows 2000's Everyone permission ... > perms (sharing tab) and/or NTFS perms. ...
    (Focus-Microsoft)
  • RE: Windows 2000s Everyone permission
    ... Subject: Windows 2000's Everyone permission ... perms and/or NTFS perms (security tab). ...
    (Focus-Microsoft)
  • Re: Recursively list a folder with VBScript
    ... >> permission applied. ... if I remove/readd the perms ... > if I use cacls on the root folder to remove/readd the perms, ... server, we were warned that, once we had changed permissions on the server ...
    (microsoft.public.scripting.vbscript)
  • Re: xcacls + subfolders and files only
    ... directory) will be changed upon the creation of an account. ... if i can remove the user's ability to change perms. ... >XCACLS documentation in front of me, ... >>>PS test using CACLS or XCACLS first. ...
    (microsoft.public.win2000.security)