Where is the switch on a Toshiba computer to change from battery to mains operation?

The switch is internal. If you plug into the mains, power will be supplied by the mains and the battery will begin charging. If you unplug from the mains, the battery takes over.