Folder Permissions

delphi package - easy access to security apis
Post Reply
Posts: 1
Joined: Fri Jul 25, 2008 8:12 am

Folder Permissions

Post by Kips »


My ultimate goal is to pass a folder path and retrieve the folder permissions for it (read, write, create, delete)

So I thought I could do :

MyShare := Share('\\VADER\V8_TEST_FILES')

But this doesn't bring back anything for NetName or Path and therefore I'm not able to access the Access properties.

So then I thought I could get all the shares on my system and loop through them. So I do a

Me := Shares([stDisk]);

But this gives only 4 entries. Namely D:\, E:\, C:\WINDOWS, C:\. So I guess this is the current shares on my local machine.

So I guess my question is, Is there any way to connect to a remote share and find out what access rights I have?


Site Admin
Posts: 10686
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Sorry for the extremely late reply! Somehow my RSS notification system missed your thread... :(

You can try to specify the server name in the third parameter of the "Shares" function. To be honest, I never tested madSecurity with remote servers, though. So I don't know if that will work.
Post Reply