Abstract Cyanopyrazines with an ortho-ammo, oxo and other groups are transformed into the corresponding amidoximes. From these the corresponding 1, 2, 4-oxadiazolyl derivatives can be prepared and interconversions to the corresponding pteridine 3-oxides are described.