How To Transfer Files From Old To New Computer Via LAN?

I am using two windows computer for my work. But, my old computer has a virus and needs to be formatted. Before that, I want to save some of my files. How to transfer files from old to new computer via LAN?
