2025-04-27 07:49:33 -04:00

104 lines
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>CloseLogFiles</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H3><A NAME="_closelogfiles"></A><SUP></SUP>CloseLogFiles</H3>
<P>This method causes the <A HREF="/iishelp/iis/htm/asp/comp6i5w.htm">IISLog</A><B> </B>component to close open log files.</P>
<H6>Syntax</H6>
<P><I>OIISLog</I><B>.CloseLogFiles( </B><I>IOMode </I><B>)</B></P>
<P><B>&nbsp;</B></P>
<H6>Parameters</H6>
<DL>
<DT><I>IOMode</I></DT>
<DD>A <B>Long</B> that indicates which log file or files should be closed. It can take one of the following values:
<TABLE border=0 cellpadding=5 cols=3 frame=box rules=all>
<TR VALIGN="top">
<TD class=blue width=28%><B>Constant</B></TD>
<TD class=blue width=33%><B>Value</B></TD>
<TD class=blue width=39%><B>Description</B></TD>
</TR>
<TR VALIGN="top">
<TD width=28%>ForReading</TD>
<TD width=33%>1</TD>
<TD width=39%>Closes log files that have been opened for reading.</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>ForWriting</TD>
<TD width=33%>2</TD>
<TD width=39%>Closes log files that have been opened for writing.</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>AllOpenFiles</TD>
<TD width=33%>32</TD>
<TD width=39%>Closes all open log files.</TD>
</TR>
</TABLE><BR>
<BR>
</DD>
<DT></DT>
</DL>
<H6>Example</H6>
<P>Please see the example for <U>OpenLogFile</U>.</P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>