Page 1 of 1

Folder Permissions

PostPosted: Fri Jul 25, 2008 8:22 am
by Kips
Hi,

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?

Cheers,

Chris.

PostPosted: Mon Sep 01, 2008 9:31 am
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.