---3-Alkyl-5-phenyl-3H- [1,2,3]triazolo [4,5-d]pyrimidin-7(6H)-ones were prepared by nitrosative cyclization of the appropriate 5,6-diamino-2-phenylpyrimidin-4(3H)-ones with nitrous acid and were subjected to regioselective alkylation with several alkylating agents in aprotic solvent at different temperature. Simultaneous 6-N-and 7-O-alkylations were observed and the regioselectivity varied remarkably with size and shape of the alkylating agents as well as with the reaction temperature. Similar N-and O-alkylations as well as selectivity were also observed in the case of 2-phenyl-9-propyl-9H-purin-6(1H)-one. Some of the synthesized compounds showed moderate antiviral and antitumor activities.