10-11-2013, 08:52 PM
What's going on guys? Here you have a simple tutorial which I explain what a batch file is, how to make one and the command prompt. If you follow each of these steps it shouldn't be a prob! This tutorial is simply an introduction to it. If these stuff seems interesting to you, I recommend you to read and follow it. Now if you are fluent in 6 different script you can read this just for fun. 
Note: if you're stuck on something, PM me.
What's a ''batch'' file?
- A batch file is a type of script file; a text file containing commands that get executed by the command prompt. What the command prompt basically is, is a thing on windows that can control your whole system. (If you're administrator.) But there have been discovered ''tricks'' a long time ago to open the CMD (stands for Command Prompt) as administrator. With this you can make (big) changes in the PC, as changed the admin's password.
![[Image: 10zmf4p.jpg]](http://i43.tinypic.com/10zmf4p.jpg)
You don't download a batch file, you'll discover how to make one simply by using notepad.
How to make a batch file?
- If you want to make a batch file, simply open notepad, then save the name as [sample].bat and select save as all files as shown on the SS.
![[Image: awao2g.jpg]](http://i43.tinypic.com/awao2g.jpg)
Now, when you open it, it does nothing! Why? Because we didn't put any commands in the file. I'll go through a list of command and make the CMD tell you ''Hi!'' First, right click on your file where you saved it and click on edit. Now follow the next steps carefully:
- @echo off = What this does, is keeping the commands hidden that you have written and only show what the commands do. (Like when you do !ban player in wolfenstein, it doesn't show the command but only what it executes) You always start a batch file with this line.
- echo [text] = Makes a text appear in CMD.
- echo. = Leaves a blank line to appear in CMD.
- pause = Pauses the CMD, withouth this the CMD would appear for like 0.2 seconds where it executes the given commands and closes right after. If you want the user to be able to see what happens, use this.
- cls = Clears the screen. (We don't have to use it now)
- title [title] = Uses this as the CMD's screen's title. (I added this after the SS, but it's simply to use. Put it right under @echo off and then continue)
When your done with your scripting just hit save.
Let's see how this looks like on a notepad and on the CMD:
(I couldn't show it any clearer)
![[Image: 30jqpza.jpg]](http://i41.tinypic.com/30jqpza.jpg)
As you can see, it works. Now you might wonder what that Dutch line says, it means ''Strike any key to continue'' thanks to our pause command. After you strike a key, it'll go to the next command. Which in now case is, nothing.
Command Prompt
- The command prompt is certainly not a toy, its something which in you can control your system in, like I said in the intro. With this could be done many and many things, I could go on and on but I'll show you a little bit of the easiest. Note: Don't play with this if you don't know what you're doing!
(You can find all commands here > All CMD Commands <
- ping [website.host] = Here in you can find the ip adress of a website.
What it actually does, it tests a network connection - if successful, ping returns the ip address. With an ip, you can connect to the website through using just the combination of numbers of the ip adress.
- cls = Clears the screen.
- shutdown -i = Opens the shutdown window, you select the computer and then you can set further information like notify user, wait 30 seconds etc.
- tree = A display of your folder structure.
- color [code] = sets the CMD screen to the colors you said him to use. Here are all codes (You can combi)
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
- MSG username [options] [message] = Send a pop-up message to users on your computer.
Sooo this was a small introdution to batch files and the command prompt. I hope I learned you a bit now and that your experiment worked. (If you made one)
Now don't forget that this isn't everything, there are sooo much codes you can use with batch and these are only one of the most simple ones.
Thanks for your interest and time, good luck!
(If I have time tomorrow I'll make a second tut with more about batch programming.)
Take care bro's and sisters!
Regards.

Note: if you're stuck on something, PM me.
What's a ''batch'' file?
- A batch file is a type of script file; a text file containing commands that get executed by the command prompt. What the command prompt basically is, is a thing on windows that can control your whole system. (If you're administrator.) But there have been discovered ''tricks'' a long time ago to open the CMD (stands for Command Prompt) as administrator. With this you can make (big) changes in the PC, as changed the admin's password.
![[Image: 10zmf4p.jpg]](http://i43.tinypic.com/10zmf4p.jpg)
You don't download a batch file, you'll discover how to make one simply by using notepad.
How to make a batch file?
- If you want to make a batch file, simply open notepad, then save the name as [sample].bat and select save as all files as shown on the SS.
![[Image: awao2g.jpg]](http://i43.tinypic.com/awao2g.jpg)
Now, when you open it, it does nothing! Why? Because we didn't put any commands in the file. I'll go through a list of command and make the CMD tell you ''Hi!'' First, right click on your file where you saved it and click on edit. Now follow the next steps carefully:
- @echo off = What this does, is keeping the commands hidden that you have written and only show what the commands do. (Like when you do !ban player in wolfenstein, it doesn't show the command but only what it executes) You always start a batch file with this line.
- echo [text] = Makes a text appear in CMD.
- echo. = Leaves a blank line to appear in CMD.
- pause = Pauses the CMD, withouth this the CMD would appear for like 0.2 seconds where it executes the given commands and closes right after. If you want the user to be able to see what happens, use this.
- cls = Clears the screen. (We don't have to use it now)
- title [title] = Uses this as the CMD's screen's title. (I added this after the SS, but it's simply to use. Put it right under @echo off and then continue)
When your done with your scripting just hit save.
Let's see how this looks like on a notepad and on the CMD:
(I couldn't show it any clearer)
![[Image: 30jqpza.jpg]](http://i41.tinypic.com/30jqpza.jpg)
As you can see, it works. Now you might wonder what that Dutch line says, it means ''Strike any key to continue'' thanks to our pause command. After you strike a key, it'll go to the next command. Which in now case is, nothing.
Command Prompt
- The command prompt is certainly not a toy, its something which in you can control your system in, like I said in the intro. With this could be done many and many things, I could go on and on but I'll show you a little bit of the easiest. Note: Don't play with this if you don't know what you're doing!
(You can find all commands here > All CMD Commands <
- ping [website.host] = Here in you can find the ip adress of a website.
What it actually does, it tests a network connection - if successful, ping returns the ip address. With an ip, you can connect to the website through using just the combination of numbers of the ip adress.
- cls = Clears the screen.
- shutdown -i = Opens the shutdown window, you select the computer and then you can set further information like notify user, wait 30 seconds etc.
- tree = A display of your folder structure.
- color [code] = sets the CMD screen to the colors you said him to use. Here are all codes (You can combi)
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
- MSG username [options] [message] = Send a pop-up message to users on your computer.
Sooo this was a small introdution to batch files and the command prompt. I hope I learned you a bit now and that your experiment worked. (If you made one)
Now don't forget that this isn't everything, there are sooo much codes you can use with batch and these are only one of the most simple ones.
Thanks for your interest and time, good luck!
(If I have time tomorrow I'll make a second tut with more about batch programming.)
Take care bro's and sisters!
Regards.
![[Image: rtrmkeG.png]](http://i.imgur.com/rtrmkeG.png)
![[Image: hGVkXBM.png]](http://i.imgur.com/hGVkXBM.png)




Join us on our TWC Discord channel
