Hello World (Batch files)

From LiteratePrograms
Jump to: navigation, search
Other implementations: Alice ML | Amiga E | AspectJ | Assembly Intel x86 Linux | Assembly Intel x86 NetBSD | AWK | bash | BASIC | Batch files | C | C, Cairo | C, Xlib | Candle | C++ | C# | Dylan | E | Forth | FORTRAN | Fortress | Go | Groovy | IBM PC bootstrap | Inform 7 | JavaScript | LaTeX | Logo | LOLCODE | Lua | MATLAB | OCaml/F Sharp | occam | Oz | Perl | PHP | PIR | PLI | Prolog | Python | Rexx | Ruby | Scheme | sh | SQL | Standard ML | Tcl | Tcl Tk | Visual Basic

This batch file prints "Hello, world!".

Normally, batch files print every command they execute. This is not wanted here, therefore it's suppressed with the following command:

<<hello.bat>>=
@echo off

After that, the message is printed with the following statement:

<<hello.bat>>=
echo Hello, world!
Download code
hijacker
hijacker
hijacker
hijacker