Synthesis of substituted thieno[2,3-d]pyrimidine-2,4-dithiones and their S-glycoside analogues as potential antiviral and antibacterial agents.