Setting Folder Security Error

Setting Folder Security Error

Post by sanjosedd » Sun, 02 Feb 2003 07:24:01



Hi,

I am trying to setup folder security  using this piece of
code

Set sec = CreateObject("AdsSecurity")
as_FolderPath = "c:\code"
Set sd = sec.GetSecurityDescriptor("FILE://" &
as_FolderPath)
Set dacl = sd.DiscretionaryACL
....
.....

The dacl object does not get set(Object variable or
With.... error).I have used this code before on the same
machine and was working fine.

Please help.
San Jose