By editing the autorun.inf file that is found in the drives.Coz wen there is a virus you can easily see how it is being executed.