 In the Second Anglo-Afghan War (1878–80) he acted as Quartermaster general on the staff of Frederick Roberts, 1st Earl Roberts.He was promoted colonel in 1884, made KCB in 1891, and from 1892 to 1893 he commanded the Peshawar district with the rank of Major-general.He retired from the army in 1893.