DirBrowseFlags
DirBrowseFlags contains flags, as seen in the Flags section,that control whether directory browsing is enabled, how much directory and file information is provided if browsing is enabled, and whether there is a default page in the directory.
Note If a client accesses the directory and does not provide a file name, and the EnableDefaultDoc flag is set to true, the server will look fora defaultfile specified in the property DefaultDoc. Ifa default file does not exist in the directory, and the EnableDirBrowsing flag is set to true, then directory browsing is enabled.
Attribute Name | Attribute Value |
---|---|
XML Data Type | DWORD |
WMI Data Type |
SINT32
|
ADSI Data Type | DWORD |
ABO Data Type | DWORD |
ABO Metabase identifier |
MD_DIRECTORY_BROWSING
|
Attributes | INHERIT |
Default Value | dirbrowseshowdate | dirbrowseshowtime | dirbrowseshowsize | dirbrowseshowextension | enabledefaultdoc |
MetaFlagsEx | CACHE_PROPERTY_MODIFIED |
User Type | IIS_MD_UT_FILE |
StartingNumber | Not applicable |
EndingNumber | 0 |
ID | 6005 |
Configurable Locations
You can configure this property at the following locations in the IIS metabase.
Metabase Path | IIS Admin Object Type |
---|---|
/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name |
IIsWebVirtualDir |
/LM/W3SVC/n | IIsWebServer |
/LM/W3SVC | IIsWebService |
/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name |
IIsWebDirectory |
Flags
Flag Name | EnableDirBrowsing |
---|---|
Description |
When set to true,directory browsing is enabled.
|
Metabase Bitmask Identifier | MD_DIRBROW_ENABLED |
Decimal Value | 2147483648 |
Hex Value | 0x80000000 |
Flag Name | DirBrowseShowDate |
---|---|
Description |
When set to true, date information will be displayed when browsing directories.
|
Metabase Bitmask Identifier | MD_DIRBROW_SHOW_DATE |
Decimal Value | 2 |
Hex Value | 0x00000002 |
Flag Name | DirBrowseShowTime |
---|---|
Description |
When set to true, file time information will be displayed when displaying directories.
|
Metabase Bitmask Identifier | MD_DIRBROW_SHOW_TIME |
Decimal Value | 4 |
Hex Value | 0x00000004 |
Flag Name | DirBrowseShowSize |
---|---|
Description |
When set to true,file size information will be displayed when browsing directories.
|
Metabase Bitmask Identifier | MD_DIRBROW_SHOW_SIZE |
Decimal Value | 8 |
Hex Value | 0x00000008 |
Flag Name | DirBrowseShowExtension |
---|---|
Description |
When set to true, file name extensions are displayed when browsing directories.
|
Metabase Bitmask Identifier | MD_DIRBROW_SHOW_EXTENSION |
Decimal Value | 16 |
Hex Value | 0x00000010 |
Flag Name | DirBrowseShowLongDate |
---|---|
Description |
When set to true, date information is displayed in extended format when displaying directories.
|
Metabase Bitmask Identifier | MD_DIRBROW_LONG_DATE |
Decimal Value | 32 |
Hex Value | 0x00000020 |
Flag Name | EnableDefaultDoc |
---|---|
Description |
When set to true, the default document (specified by the DefaultDoc property) for a directory will be loaded when the directory is browsed.
|
Metabase Bitmask Identifier | MD_DIRBROW_LOADDEFAULT |
Decimal Value | 1073741824 |
Hex Value | 0x40000000 |
Code Example
For general code examples, please see Code Examples to Configure Metabase Properties