To prevent this, a battery for backing up the RAM is provided in the personal computer 1 separately from the internal battery 2 so as to save the data and the like in a memory such as a magnetic disk which can store the data before the power supply to the personal computer is cut off for the purpose of exchanging the batteries.