Look like the only option for you is to format your hard disk and re-install your system.
When you reformat your hard disk, the virus will be removed unless it is boot sector virus.
If is is boot sector virus, just need to do a fdisk /mbr and it will be removed.
What is the name of the file that you open and infect your system?
Where did you get that file?