Dela via


DirBrowseFlags Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The DirBrowseFlags metabase property 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 Metabase Property. If a 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

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

42147483648

Hexadecimal Value

0x80000000

Flag Name DirBrowseShowDate

Description

When set to true, date information is displayed when browsing directories.

Metabase Bitmask Identifier

MD_DIRBROW_SHOW_DATE

Decimal Value

2

Hexadecimal Value

0x00000002

Flag Name DirBrowseShowTime

Description

When set to true, file time information is displayed when displaying directories.

Metabase Bitmask Identifier

MD_DIRBROW_SHOW_TIME

Decimal Value

4

Hexadecimal Value

0x00000004

Flag Name DirBrowseShowSize

Description

When set to true, file size information is displayed when browsing directories.

Metabase Bitmask Identifier

MD_DIRBROW_SHOW_SIZE

Decimal Value

8

Hexadecimal 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

Hexadecimal 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

Hexadecimal Value

0x00000020

Flag Name EnableDefaultDoc

Description

When set to true, the default document (specified by the DefaultDoc Metabase Property) for a directory is loaded when the directory is browsed.

Metabase Bitmask Identifier

MD_DIRBROW_LOADDEFAULT

Decimal Value

1073741824

Hexadecimal Value

0x40000000

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.