Kmety played an important role in setting up the corps, because another captain ended up not enlisting because of illness. Kmety was leading four companies when he went with Lajos Kossuth to János Móga's camp, and with them fought the Battle of Schwechat. For this Kossuth awarded him a captaincy in the 1st Army Corps. Later he was promoted to colonel for defeating a cavalry attack. From 15 February 1849 Kmety was leading a division.