How do computer virus spread quickly in your computer?
Virus can spread by many way, depends on the hacker who made
it.
Some virus will infect your computer immediately when you visit
a website. But some are harmless until you click on file which was
infected.
There are many type of virus nowadays: trojan, macro,
rootkit,....you can find more information on norton, kaspersky
site.