
May 12th, 2008, 12:02 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Posts: 3
Time spent in forums: 33 m 3 sec
Reputation Power: 0
|
|
|
IIS - Other - Programatically setting read access on a web sites subfolders
I'm trying to set read access on a subfolder for a web site in the IIS, I can do it on the actual web site like this:
dim w3svc
Set w3svc = GetObject("IIS://LocalHost/w3svc/1/root/mysite")
w3svc.AccessRead = False
w3svc.SetInfo
So, I thought this would work:
dim w3svc
Set w3svc = GetObject("IIS://LocalHost/w3svc/1/root/mysite/test")
w3svc.AccessRead = False
w3svc.SetInfo
Got a subfolder called "test".. But I get an "Path not found" error/exception. Is there some other way I should do this?
Thanks
|