Protecting yourself from computer viruses

Just lately, my portable HDD acquired a virus from a friend’s laptop. It’s pretty annoying that now I have to find away to get my files about 600 gb there or maybe kill the virus that got in there. I’m still looking for the right antivirus to use, my old one has already expired and I can’t…