 In 1804, he became the proprietor of "Davidovich" Infantry Regiment #34, a Hungarian unit, and held this position until his death.When the War of the Third Coalition broke out, he commanded part of Archduke Charles' army in Italy.During the Battle of Caldiero on 29–31 October 1805, he led the nine infantry battalions, eight cavalry squadrons, and 26 artillery pieces of the left wing.