The next year, Cook participated in the Battle of Gettysburg, where he carried messages across a half-mile of fire-swept terrain. During that battle, he helped destroy a damaged caisson to prevent it from falling into the hands of approaching Confederates.