Step 1: To Start
That's it now save the file but save it as anything.bat the file name must end in .bat for this to work. Now open the file there is a lot of junk but the code should say hello
Now right click on the file and select edit change the code to
Re open it and there is the word hello
The line "@echo off" will hide any new "junk" (the commands) and "cls" will clear any existing junk.
The two lines can also be combined into one with I will show you in a future tutorial.
Step 2: Echo
Echo. Will add a break in the lines ( enter key ) because batch will ignore blank lines
Try experimenting with the echo command for example
Echo hello %username% how are you?
Step 3: Pause
Pause>nul will pause the file and hide the words this file is paused.
Commands can be placed after pause as well like bellow
Echo how are you?
But here is the problem the file will exit because there are no more commands so for this code have pause at the end.
Step 4: Goto
Echo %random% %random% %random% %random% %random% %random%
Save this as matrix.bat and open it
Now the goto command can only goto "top" in this code if a ":" sign is in front of the word top with no space like this :top
Step 5: Set and If
Echo How are you?
Set /p feeling=
Echo your feeling %feeling%
If %feeling%==good echo that's good
If %feeling%==bad goto bad
Echo that's bad
Set /p takes the users input and sets it as a variable in this case feeling and if does something with it now try to Make your own code I will release more tuts later for now view my other batch codes here