Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Windows NT Batch

Date:06/24/05
Author:Kang Seonghoon (Tokigun)
URL:http://tokigun.net/en/
Comments:0
Info:n/a
Score: (2.33 in 12 votes)
@echo off
rem ========================================
rem 99 Bottles of Beer in Windows NT Batch
rem by Kang Seonghoon (Tokigun), 2005-06-24.
rem This program is in public domain.
rem ========================================
set bottle=bottles
set number=99
:loop
echo %number% %bottle% of beer on the wall,
echo %number% %bottle% of beer.
echo Take one down, pass it around,
set /a number=number-1
if "%number%"=="1" set bottle=bottle
if "%number%"=="0" goto done
echo %number% %bottle% of beer on the wall.
echo.
goto loop
:done
echo No more bottles of beer on the wall.
echo on

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
Uses 2000- and XP-specific featurestester08/18/050
2Frank-Peter Schultze09/24/050

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: