I have a wooden box with a flat top, I sharpen my saw chains on top of it. I put the bar in a stump vice and hold a paint stirrer with on hand (against the back of the tooth) and sharpen with the other hand. This procedure immobilizes the tooth. My wooden box is 27" long, 12" wide, 12" high. I store my sharpening supplies in it. I then sit on a mechanics stool to do the sharpening.
The bottom of the paint stirrer is on the box, angled into the back of the tooth, then I just pinch it against the guide bar. Goes fast, works well.
Generally, I square file by hand, but this procedure also works well for round file, with either a hand file or 12 V sharpener with diamond stone.