PDA

View Full Version : IIS Scripting (All)



danf400007
07-04-2006, 02:12 PM
Hi,
How can I set Directory Browsing to be enabled on a sub folder in a Virtual Directory? I can set it on the virtual directory using the following:

Set ObjServer = getobject("IIS://localhost/w3svc/1/root/MyVdir")
ObjServer.EnableDirBrowsing = True
ObjServer.SetInfo

But it doesn't seem to work for the sub folders ie:

Set ObjServer = getobject("IIS://localhost/w3svc/1/root/MyVdir/SubFolder")
ObjServer.EnableDirBrowsing = True
ObjServer.SetInfo

Thanks for any suggestions, Dan.