I spent an evening googling gauss guns/rail guns a while back. There are some very impressive videos out there. People rigging up capacitor banks with some serious power potential. Of course, recharging those capacitors would put some serious hurt on batteries, but the concept still really interests me.
Until batteries get *MUCH* better these are no competition for any firearm in terms of a man-portable weapon though. The rub with batteries is that as the get higher power densities, alot of the safety we associate with batteries goes away. Li-ion and Li-polymer batteries can easily enough reach a point of thermal runaway (read: start a fire) if not managed properly. People hear battery-powered and think safe kids toy, but if you pack enough energy into a small enough space, anything starts to behave more like gasoline or gunpowder - it wants to give that energy up.