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

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | EnableDefaultDoc

Internal Default

DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | DirBrowseShowLongDate | EnableDefaultDoc

Upper Bound

0

Lower Bound

Not specified

Internal ID

6005

Friendly ID

MD_DIRECTORY_BROWSING

Property Attributes

INHERIT

User Type

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.

Bitmask

2 (hex 0x00000002)

Friendly Bitmask ID

MD_DIRBROW_SHOW_DATE

Internal ID

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.

Bitmask

16 (hex 0x00000010)

Friendly Bitmask ID

MD_DIRBROW_SHOW_EXTENSION

Internal ID

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.

Bitmask

32 (hex 0x00000020)

Friendly Bitmask ID

MD_DIRBROW_LONG_DATE

Internal ID

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.

Bitmask

8 (hex 0x00000008)

Friendly Bitmask ID

MD_DIRBROW_SHOW_SIZE

Internal ID

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.

Bitmask

4 (hex 0x00000004)

Friendly Bitmask ID

MD_DIRBROW_SHOW_TIME

Internal ID

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.

Bitmask

1073741824 (hex 0x40000000)

Friendly Bitmask ID

MD_DIRBROW_LOADDEFAULT

Internal ID

6206

Flag Name

EnableDirBrowsing

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

When set to true, directory browsing is enabled.

Bitmask

2147483648 (hex 0x80000000)

Friendly Bitmask ID

MD_DIRBROW_ENABLED

Internal ID

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

See Also