Written by

Question sansa stark · Sep 18, 2018

How to get the Windows SID number using Caché Command?

Hi All, Can any one please tell how to get the Windows SID number using Caché Command.

Comments

Rod Dorman · Sep 19, 2018
    SET $ZT = "CommandErr"
    OPEN Command:"QR"
    FOR {
        USE command
        READ Text
        USE $P
        SET Array($I(Array))=Text
    }
 CommandErr ;
    SET $ZT=""
    SET ZE=$ZE
    USE $P
    CLOSE command
    IF $P(ZE,">")'="<ENDOFFILE" {
        ; some error other than end of file
    }
    ELSE {
        ; parse contents of Array()
    }
0