Sometimes, Viruses can annoy to the extent that they will not allow to boot the operating system and you are left in miserable condition. In such case, formatting and re-installing OS would be a non-profitable deal because you may lose your data if not backup and it will take a long time. Better Solution is to opt for running a Bootable Antivirus rescue disk to clean out any harmful objects present.