Barton was promoted to lieutenant colonel on November 10, 1777 and was made colonel of Stanton's regiment of the Rhode Island State Troops on December 1 with "rank and pay of colonel in the Continental Army" upon the resignation of Colonel Joseph Stanton, Jr. On December 19, Barton was re-appointed as colonel of his regiment when the enlistments of its members expired. Soldiers were re-enlisted for a term expiring on March 16, 1779. The regiment was part of the Rhode Island State Troops which was a brigade, commanded by Brigadier General Ezekiel Cornell, which consisted of two regiments of infantry and one of artillery for the defense of Rhode Island. In addition to Barton the other regiment of infantry was commanded by Colonel Archibald Crary and the artillery regiment by Colonel Robert Eliot. In February 1778, Barton was commissioned in the Continental Army and command of the regiment was given to Colonel John Topham.