MD_DIRECTORY_BROWSING

This identifier contains flags 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.

Attributes

Data type DWORD
Default inheritance Inheritable
User type IIS_MD_UT_FILE

Values

Default Value
MD_DIRBROW_SHOW_DATE |

MD_DIRBROW_SHOW_TIME |

MD_DIRBROW_SHOW_SIZE |

MD_DIRBROW_SHOW_EXTENSION |

MD_DIRBROW_LOADDEFAULT

Constant Value Description
MD_DIRBROW_SHOW_DATE 0x00000002 Show date
MD_DIRBROW_SHOW_TIME 0x00000004 Show time
MD_DIRBROW_SHOW_SIZE 0x00000008 Show file size
MD_DIRBROW_SHOW_EXTENSION 0x00000010 Show file extension
MD_DIRBROW_LONG_DATE 0x00000020 Show full date
MD_DIRBROW_LOADDEFAULT 0x40000000 Load default page, if exists
MD_DIRBROW_ENABLED 0x80000000 Enable directory browsing

Metabase Keys

This identifier is available at the following metabase keys:

Metabase Path Key Type
/LM/W3SVC IIsWebService
/LM/W3SVC/n IIsWebServer
/LM/W3SVC/n/ROOT IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory IIsWebDirectory

Remarks

If a client accesses the directory, but does not provide a file name, and the MD_DIRBROW_LOADDEFAULT flag is set, the server will look for the file specified in the identifier MD_DEFAULT_LOAD_FILE. If the default file does not exist in the directory, then the browser is put in directory browsing mode if the MD_DIREBROW_ENABLED flag is set.

The MD_DIRBROW_LOADDEFAULT flag only applies to the IIsWebVirtualDir and IIsWebDirectory keys.

See Also

DirBrowseFlags


© 1997 by Microsoft Corporation. All rights reserved.