Microsoft Operations Manager

GetLogFileInfo Method

The GetLogFileInfomethod retrieves the path and size of the active log files. It also returns the amount of free space, in kilobytes, for the drive on which the log files are located.

[VBScript]
ActiveDirectory.GetLogFileInfo(Path Variant, Size Variant,
FreeSpace Variant)

Parameters

Path
[Out] Path of the Active Directory log files.
Size
[Out] Size, in kilobytes, of the Active Directory log files.
FreeSpace
[Out] Amount of free space, in kilobytes, on the drive on which the log files are located.

Return Value

Long

Examples

The following example shows how to get information about the Active Directory log files.

[VBScript] 
Function GetADLogSize()
	Dim objActiveDirectory
	Dim strPath
	Dim lngSize, lngFreeSpace

	strPath = ""
	lngSize = -1
	lngFreeSpace = -1

	Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")

	objActiveDirectory.LogFileInfo(strPath, lngSize, lngFreeSpace)

	Set objActiveDirectory = Nothing

	GetADLogSize = lngSize
End Function

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

ActiveDirectory Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.