At the Battle of Kápolna of February 26–27, he distinguished himself and on 14 April 1849 was promoted as the Colonel commanding the 7th Corps. Later he was promoted to General on 2 June. During the summer campaign against Haynau the army was forced to retreat. He participated in the Battle of Komárom (July 2 to July 11) and the Battle of Vác (July 15-July 17).