The IIsWebDirectory object is used to set metabase properties that apply to one or more Web directories for a Web server. When you use the IIsWebDirectory object to set metabase properties for a Web directory, inheritable properties will apply to all subdirectories and files.
You can also use IIsWebDirectory methods to create and manage Web applications in Web directories and subdirectories. Applications can also be defined and managed in virtual directories by using IIsWebVirtualDir.
The IIsWebDirectory object is an ADSI container object.
where MachineName can be any name or "LocalHost."
varReturn = object.Method
IIsWebDirectory | IIsWebFile |
ADSI Object Properties |
AppCreate | Creates an application at a specified metabase key (parameter is a Boolean). |
AppCreate2 | Creates an application at a specified metabase key (parameter is a Long). |
AppDelete | Deletes an application definition at a specified key. |
AppDeleteRecursive | Deletes application definitions at a specified key and subkeys. |
AppDisable | Disables an application at a specified key. |
AppDisableRecursive | Disables applications at a specified key and subkeys. |
AppEnable | Enables an application that was previously disabled at a specified key. |
AppEnableRecursive | Enables applications that were previously disabled at a specified key and subkeys. |
AppGetStatus | Retrieves the status of an application. |
AppUnload | Unloads an application at a specified key. |
AppUnloadRecursive | Unloads applications at a specified key and subkeys. |
AspAppRestart | This method restarts the ASP application that invoked it. |
ADSI Object Methods | Standard methods for ADSI objects. |
ADSI Container Object Methods | Standard methods for ADSI container objects. |
Web directories can be nested, and are addressed with the path to the directory, including the directory name (for example .../vdirName/Dir1/Dir1a/Dir1ab, and so on).