DirBrowseFlags
The 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 for a default file specified in the DefaultDoc property. If a default file does not exist in the directory, and the EnableDirBrowsing flag is set to true, then directory browsing is enabled.
Schema Attributes
Attribute Name |
Value |
---|---|
DWORD |
|
DWORD_METADATA |
|
DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | EnableDefaultDoc |
|
DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | DirBrowseShowLongDate | EnableDefaultDoc |
|
0 |
|
Not specified |
|
6005 |
|
MD_DIRECTORY_BROWSING |
|
INHERIT |
|
IIS_MD_UT_FILE |
Configurable Locations
You can configure this property at the following locations in the IIS metabase.
Metabase Path |
IIS Admin Object Type |
---|---|
/LM/W3SVC |
IIsWebService |
/LM/W3SVC/n |
IIsWebServer |
/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name |
IIsWebDirectory |
/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name |
IIsWebVirtualDir |
Flags
Flag Name |
DirBrowseShowDate |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, date information is displayed when browsing directories. |
2 (hex 0x00000002) |
|
MD_DIRBROW_SHOW_DATE |
|
6200 |
Flag Name |
DirBrowseShowExtension |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, file name extensions are displayed when browsing directories. |
16 (hex 0x00000010) |
|
MD_DIRBROW_SHOW_EXTENSION |
|
6203 |
Flag Name |
DirBrowseShowLongDate |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, date information is displayed in extended format when displaying directories. |
32 (hex 0x00000020) |
|
MD_DIRBROW_LONG_DATE |
|
6204 |
Flag Name |
DirBrowseShowSize |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, file size information is displayed when browsing directories. |
8 (hex 0x00000008) |
|
MD_DIRBROW_SHOW_SIZE |
|
6202 |
Flag Name |
DirBrowseShowTime |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, file time information is displayed when displaying directories. |
4 (hex 0x00000004) |
|
MD_DIRBROW_SHOW_TIME |
|
6201 |
Flag Name |
EnableDefaultDoc |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, the default document (specified by the DefaultDoc property) for a directory is loaded when the directory is browsed. |
1073741824 (hex 0x40000000) |
|
MD_DIRBROW_LOADDEFAULT |
|
6206 |
Flag Name |
EnableDirBrowsing |
---|---|
Versions Applicable |
[IIS 5.0][IIS 5.1][IIS 6.0] |
Description |
When set to true, directory browsing is enabled. |
2147483648 (hex 0x80000000) |
|
MD_DIRBROW_ENABLED |
|
6205 |
Requirements
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS