A Pittsfield resident has been charged with beating another man with batteries stuffed inside a sock.