While operating loader, the BAT warning light came on & alarm went off. EE looked behind him & saw smoke. EE called supervisor. They attempted to put out the fire with a fire extinguisher but were unsuccessful. Fire Dept responded. Loader was a total loss.