@Echo Off SetLocal EnableDelayedExpansion For /L %%A In (99,-1,0) Do ( Set X=%%A If !X!==1 (Set B=bottle) Else (Set B=bottles) If !X!==0 Set X=No more Echo !X! !B! of beer on the wall, !X! !B! of beer. Set /A X -= 1 If !X!==1 (Set B=bottle) Else (