I have one PC in my office with a modem connection to cable broadband.
I have run a cable to the workshop with two pcs (wireless will not work with the machines and a mass of racking and components stored, I’ve tried it.)
I need internet connection to all pcs plus full file sharing.
I was going to connect the office pc to a router/switch with a wan connection for the internet, in the workshop a hub to the 2 pcs, will this give me the functionality I need?
Probably -- or buy a router designed to connect to a Cable modem and connect all computers to that. Most come with wireless at little extra cost so as a bonus you might be able to use wireless where reception allows.