Question: how to transfer files from pc to pc with one monitor?
Answer: Just switch the monitor cable between the two computers as needed. Connect it to the one that you're working on at any time. A fancy solution would be to get a KVM switch to share the monitor (and keyboard and mouse) between the computers.