In a perfect world, your antivirus software will halt and clean the infected files for you. However, this largely depends on which antivirus program you are using. In general, the antivirus will send a warning to you and try to quarantine the infected file in order to keep it from spreading. Once isolated, the software will give you the option to try to remove the infection or delete the file altogether.