 On his return to India in 1802, he was employed against Sindhia, but being irritated at another appointment given to Wellesley he relinquished his command and returned to Europe.In 1804 he was knighted, and in 1805–1806, being by now a lieutenant-general, he commanded the expedition against the Cape of Good Hope with complete success, capturing Cape Town and forcing the Dutch general Janssens to surrender.But here again his usual ill luck attended him.