How to make the SIMPLEST program ever / Hello World in Batch November 17, 2009
Posted by trapax in Uncategorized.Tags: basic, batch, easy, How, in, make, program, programming, simplest, the, to, world
trackback
Hello folks today I am going to show you how to “program” a “program” in the simplest “programming language” ever,using the Windows Command Line.(Yes this only works on windows, sry mac users i will post something for you guys next time)
I know some might say its not a programming language but its the Mother of all programming languages.
Just for the record this is not the only programming language , if you want me to post like PHP or Python tutoarials then comment on this post!
so lets get started
open up notepad!
write the following code:
@echo off
cls
echo Hello World
pause > nul
remember to select All types in save as!
save as something.bat the name is not important!
goto your desktop (i assume you saved it there) and run it it should print out Hello World.
now to show you what the code means.
@echo off
cls
those two commands tell the windows command line to clear the screen.
echo Hello World
this is what prints Hello World
pause > nul
this holds the screen til you press a key otherwise it will run and close in seconds
thank you for reading!
-Trapax
Comments»
No comments yet — be the first.