The Hammers had six different names on the score-sheet as many of the squad were given a 45 minute work-out.
Midfielder Alou Diarra and Joe Cole struck the opening two goals before Adam Rundle hit back for the hosts before half-time. Mark Noble then had a first penalty saved by goalkeeper Kevin Burns before Matt Taylor struck a long-range third and Paul McCallum converted a Dean Whitehead cross for the Hammers’ fourth.
A handball on the line then gave Mark Noble the chance to make amends for his earlier penalty. He duly converted for the fifth goal before Ravel Morrison added a sixth with 5 minutes remaining. Gearóid Morrissey hit a late consolation for Cork City.