Statistic and lotus script

Hello,

is it possible to get a statistic value dirtectly using lotus script?

I want to use the value for example Disk.Free.C in my script.

Or is the only way to get this from the statistic database?

Many thanks,

Peter

Subject: Use OS commands & read the output into a NotesStream?

Windows Batch File called df.bat:echo off

dir %1 /-C | find “free” > df.txt

LS Code:

Sub Initialize

Dim session As New NotesSession

Dim stream As NotesStream

Dim result As Integer

Dim strFileSize As String

Dim vntSizeKB As Variant

Dim vntSizeMB As Variant

Dim vntSizeGB As Variant

Set stream = session.CreateStream

result = Shell(“c:\df.bat”, 7)

If result Then

stream.Open(“c:\df.txt”)

strFileSize = Trim(stream.ReadText)

stream.Close

strFileSize = Trim(Strleft(Strright(strFileSize,“(s)”),“bytes”))

End If

vntSizeKB = strFileSize / 1024

vntSizeMB = vntSizeKB / 1024

vntSizeGB = vntSizeMB / 1024

Messagebox Format(vntSizeGB,“###,###,###.###”),“Free Disk Space”

End Sub

You’ll need the appropriate access rights to the OS…

HTH