A computer virus spreads from computer to computer through the actions of users. Being exposed to the virus by downloading it, opening it in an e-mail, or loading it from removable media are the usual ways they infect your computer. It usually takes some action by a user to expose themselves to the virus. This is essentially the defining characteristic. Once the virus is loaded, it can do things on its own to infect files, stay loaded in memory and reload on restart, and so forth. When it hasn't been executed by the user or automatically by the operating system, usually it is dormant. This isn't a hard and fast rule, and viruses have many different types and subcategories, as they are complex.