Starting from 6-aryl-4-oxo-2-thioxo-1,2,3,4-tetrahydropyrimidine-5-carbonitrile (4a-d), a series of mono- and dialkyl derivatives 5a-j and 6a, b was synthesized. Hydrazinolysis of 4a, b, d and 5d afforded the hydrazino derivatives 7a-c which were cyclised to give the triazolopyrimidinones 8a-c and the pyrimidotriazinones 9a-c through the reaction with formic acid and chloroacetyl chloride, resp...