In January 1801 he entered the Royal Staff Corps as an ensign, and progressed steadily. He became deputy assistant quartermaster-general to Sir John Moore in Sweden, and also at the Battle of Corunna. He also was present at the Battle of Fuentes de Oñoro.