run cacls first on the folder, and it will dump the permissions

you will need to do some string manipulation and some adsi queries to enum the memberships to determine effective permissions...

In the short term it may just be easier to
read a file, check for error
create a file, check for error
delete a file, check for error

much quicker to write
_________________________
How to ask questions the smart way <-----------> Before you ask