In this tutorial you will learn more advanced commands and how to use them to create an application.
Step 1: Variables Step (1/3)
Variables are things that are subject change. When we create a variable, we are creating something that we want the computer to remember for us, something that we can use later on in a program; we give the computer the value that we want to store and we give it a label to store it under.
we can create integers and strings using variables.
To create a variable you need to learn the SET command.
The SET command is what creates variables;
Type the following into your CMD: SET name=hello
'name' is the name of the variable, and 'hello' is what the variable is storing
so now every time you type "echo name" it should say "hello" yes? NO
if you want to display a variable you must put percentage (%) signs around it.
So therefore if you type "echo %test%" and it should say "hello" yes? YES