How do you prevent viruses?

Install the AntiVirus software and scan your computer. The AntiVirus prevents any kind of malicious software and viruses.