Information processing equipment, comprising: a plurality of battery housing portions (23R, 23L) configured to individually house batteries (24R, 24L); lid portions (25R, 25L) that are provided corresponding respectively to the battery housing portions (23R, 23L), that are opened and closed independently during attachment or removal of the batteries (24R, 24L), and that are provided with magnetic-field-generating portions (29R, 29L); magnetic-field-detecting elements (31 R, 31 L) that are provided corresponding to the magnetic-field-generating portions (29R, 29L), and that detect the strength of a magnetic field from the magnetic-field-generating portions (29R, 29L); a switching portion that is configured to select the battery (24R, 24L) from which power is drawn, from among batteries (24R, 24L) housed in the plurality of battery housing portions (23R, 23L); a control portion that is configured to control the switching portion based on a detection result obtained by the magnetic-field-detecting elements (31 R, 31 L), and a charge/discharge control portion that is configured to acquire battery capacities of the plurality of batteries (24R, 24L) when the lid portion (25R, 25L) is closed, and to perform switching of batteries so that when a battery capacity of one of the batteries is beyond a predetermined criterion value and a battery capacity of another battery is equal to or below the criterion value, the battery with the battery capacity beyond the criterion value is discharged, or the battery with the battery capacity below the criterion value is charged; wherein, when acquiring a battery capacity of a battery being charged, the charge/discharge control portion is configured to determine, when the battery capacity of the battery being charged has risen above a first battery capacity value, a battery with a battery capacity less than the first battery capacity value, when another battery with an battery capacity value less than the first battery capacity is detected by the charge/discharge control portion, the charge/discharge control portion is configured to switch the battery being charged to the other battery, and charges the same, and when no other battery with an battery capacity less than the first battery capacity is detected by the charge/discharge control portion, the charge/discharge control portion is configured to continue charging after changing the first battery capacity value to a second battery capacity value that is larger than the first battery capacity value, and wherein acquiring a battery capacity of a battery being discharged, the charge/discharge control portion is configured to determine, when the battery capacity of the battery being discharged has fallen below a first battery capacity value, a battery with an battery capacity greater than the first battery capacity value, when another battery with an battery capacity value greater than the first battery capacity is detected by the charge/discharge control portion, the charge/discharge control portion is configured to switch the battery being discharged to the other battery, and to discharge the same, and when no other battery with an battery capacity greater than the first battery capacity is detected by the charge/discharge control portion, the charge/discharge control portion is configured to continue discharging after changing the first battery capacity value to a second battery capacity value that is smaller than the first battery capacity value. a plurality of battery housing portions (23R, 23L) configured to individually house batteries (24R, 24L); lid portions (25R, 25L) that are provided corresponding respectively to the battery housing portions (23R, 23L), that are opened and closed independently during attachment or removal of the batteries (24R, 24L), and that are provided with magnetic-field-generating portions (29R, 29L); magnetic-field-detecting elements (31 R, 31 L) that are provided corresponding to the magnetic-field-generating portions (29R, 29L), and that detect the strength of a magnetic field from the magnetic-field-generating portions (29R, 29L); a switching portion that is configured to select the battery (24R, 24L) from which power is drawn, from among batteries (24R, 24L) housed in the plurality of battery housing portions (23R, 23L); a control portion that is configured to control the switching portion based on a detection result obtained by the magnetic-field-detecting elements (31 R, 31 L), and a charge/discharge control portion that is configured to acquire battery capacities of the plurality of batteries (24R, 24L) when the lid portion (25R, 25L) is closed, and to perform switching of batteries so that when a battery capacity of one of the batteries is beyond a predetermined criterion value and a battery capacity of another battery is equal to or below the criterion value, the battery with the battery capacity beyond the criterion value is discharged, or the battery with the battery capacity below the criterion value is charged;