Login Register






The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Thread Rating:
  • 0 Vote(s) - 0 Average


Batch Basic Tutorial/Reference filter_list
Author
Message
Batch Basic Tutorial/Reference #1
Batch, although many people think is "nooby and useless" has many, MANY uses, for windows of course.

Lets start off with some basic commands.

@echo off : This command is not essential, it only makes the appearance of your batch program look neater, by turning off all the pretext that is inside of batch programs.

pause : This sets a pause in the program, prompting the user to press any key to continue.

cls : cls clears all the text on the screen.

exit : This, obviously, exits the program.

echo : this "echos" the text you put after the command. For example: "echo Hello World!" prints Hello World! on the screen.

color : This sets the color of the text. The colors are defined below:

0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

" " : Quotation marks open the process set inside the quotation marks. For example:
"www.google.com" Will open Google.com.

Finally, at the end of coding a program, click file > save as > any_name.bat.

Now lets smash up all of these commands into one program.

@echo off
color a
echo This is my first program!
pause
cls
echo I hope you enjoy it!
pause
cls
echo Now here is a great forum you should try out!
pause
cls
"www.anarchyforums.net"
pause
cls
echo Thats it for now!
pause
exit

I hope you enjoyed the tutorial!

Let me know if you want another Batch tutorial.

Reply

RE: Batch Basic Tutorial/Reference #2
Very basic, might look better with some pictures or colors. Otherwise nice TUT.

Reply

RE: Batch Basic Tutorial/Reference #3
(02-05-2013, 04:19 AM)Kinanizer Wrote: Very basic, might look better with some pictures or colors. Otherwise nice TUT.

Thanks. But I don't know how to use forum things Tongue

I only know [b], [i], [u], and [url].

I will post pictures soon!

Reply

RE: Batch Basic Tutorial/Reference #4
It's really simple if you use the toolbar. Just click edit below your post, then full edit to get started.

Reply

RE: Batch Basic Tutorial/Reference #5
(02-05-2013, 04:22 AM)Kinanizer Wrote: It's really simple if you use the toolbar. Just click edit below your post, then full edit to get started.

The toolbar isn't there Sad

It might be because I'm using a proxy.

Reply







Users browsing this thread: 1 Guest(s)