Search This Blog

Saturday, November 22, 2014

How to find out if PIRC is enabled programmatically

Hi

Need to find out if PIRC is enabled programmatically?
I didn't find any other way as through Domino console output.
At least C API toolkit does not have anything.


You can do something like this:
response = session.Sendconsolecommand(servername, {show dir -pirconly"})
If response <> "" then
If InStr(1, response, targetDb.filepath) > 0  Then
IsPIRCEnabled = "1"
Else
IsPIRCEnabled = "0"
End If
Else
IsPIRCEnabled = "-1"
End if

No comments:

Post a Comment