Platform SDK: Performance Monitoring

SystemMonitor.LogFileName

Retrieves or sets the name of an existing log file to be used as the data source of the view. This is a read/write property.

Public Property LogFileName( ) as String

Remarks

The name of the log file you set the LogFileName property to must be a complete path—it must include the name of the drive, computer, and folder as well as the name of the log file.

If the value of this property is an empty string, data will be retrieved from a real-time source such as WMI or the registry. The sources are also referred to as "current activity."

Return Values

A string specifying the name of the log file being used as the data source of the view, or an empty string signifying that data is being retrieved from a real-time source.

Example

Graph1.LogFileName="c:\perflogs\perfdata_000001.csv"

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Smonctrl.odl.

See Also

System Monitor Automation Interface Overview, System Monitor Automation Interface Properties