Odd as it may sound, there ARE ways of changing
all of the Folder (which IS a File) attributes including
the "read" attribute.
Unfortunately Microsoft has *never* seen fit make
the effort of implementing that level of file (sic)
security/operability/functionality. I had hoped,
when they implemented the NTFS system that
their "vision" might include that foresight. Sadly
their scope wasn't quite that visionary.
It would be nice to be able to place an ACL on
any Drive/Directory/Sub-Directory/File/or/
File.Version and know that it would work.
Another AC that would be nice to have would
be an (E)xecute "control" that was independent
from the current "ReadExecute" option. That way
you could allow people (E)xecute access without
giving then (R)ead/Copy access.
Just a couple of passing thoughts - worth less
than a "penny for my thoughts."
David
--
"Ram" <Ram DeleteThis @discussions.microsoft.com> wrote in message
news:CD762B0A-296E-49A3-99A1-D88E0203BC4C@microsoft.com...
> Hi Kerry,
>
> 1) In the error message Test Project has a space in it. In the code it
> doesn't. Is this just a typo in your post? : Yes.There is no space between
> testproject in either of them.
>
> 2) Is the program running as the administrator account? Yes
>
> 3) Are the files deleted and not the folder or is nothing deleted?
>
> All the folders, and the files in those folders are being deleted. But not
> files with in Testproject.In the code we are assuming Testproject as 'My
> documents'.This is because we have some system files in 'My Documents'.
>
> Testproject (folder)
> -> folder f1 (deleted)
> -> folder f2 and files a1,a1 in f2 (deleted)
> -> file b1, b2 in Testproject (Not being deleted)
>
>
> Hi Wesley,
>
> All the settings in 'User Rights Assignment' of local security policy are
> default and the machine is in work group.
>
> Regards
> Ram
>
> >> Stay informed about: Removing read only attributes on folders