You have to buy one that is made especially for that purpose. If you just get a USB cable with two male ends and try to plug it into each computer, it will short circuit both power supplies and will not be pretty.
I think that the easiest way to do this would be to take the hard drive out of the old computer and put it in the new one, with the new hard drive of course. Then you could transfer the files at much higher speeds.