 He spent the rest of the war commanding her, principally off the British coast, and was promoted to post-captain on 29 April 1802.After a long period without a ship, Crawford was assigned to the 24-gun in 1808.He commanded her off the Spanish coast during the Peninsular War, supporting Spanish patriots against the French forces, later moving to the 32-gun to carry out the same service.