How to Remove autorun virus Windows XP Problem Some viruses hide themselves in the hard drive or portable drive, and they will run automatically with the drive. They can spread themselves with your portable drive. To remove autorun virus, follow this article. Solution Press Win+R and type cmd to run Command Prompt. run command prompt Type cd\ and press enter to go to the root directory of c:\ Type attrib -h -r -s autorun.inf and press enter to unlock autorun information file. Type del autorun.inf to delete autorun information file. Type d: to go to the root directory of d:\, type the command again to remove autorun virus in d:\, then go to every other drives and do it again. Remove autorun virus Tips If you see file not found autorun.inf, you should skip this drive and go to the next.