Vieira, who turned 30 Friday, scored in the 55th minute and assisted on Thierry Henry's goal six minutes later as France survived a must-win situation to earn a Round-of-16 berth against Spain Tuesday in Hanover, Germany. France finished Group G play with a 1
France played with an urgency equal to the standings' situation but couldn't break through against Togo goalkeeper Kossi Agassa until after halftime. France's Frank Ribery got the ball to Vieira, who spun around a defender and into the right-hand corner for the first goal.
A few minutes later, Vieira headed the ball in front of the goal where Henry crossed a shot back to the left side of the goal for a 2-0 lead in the 61st minute.
France goalkeeper Fabien Barthez completed group play allowing one goal in the three games. He faced eight Togo shots Friday in notching his second shutout.