In May 1797 he was transferred to the , and on 3 July 1798 was appointed captain of the same ship by order from Lord St. Vincent. His promotion was not confirmed till 24 October 1799; but he continued to command the "Ville de Paris" till May 1800, and for a great part of the time with Lord St. Vincent's flag at the main. He afterwards commanded the frigates , , and the "Pitt", in the East Indies, in all of which he was fortunate in making several rich prizes. Having brought home the "Pitt", rechristened , he still commanded her in the Baltic in 1808, and in July 1809 was employed in escorting part of Lord Chatham's army to Walcheren. The following year he was appointed to the 74-gun ship in which he went out to the Mediterranean, and stayed there till the end of the war.