Windows Command Prompt TutorialIntroduction Internal and External commands Basic Commands Basic file commands Sorting the data Searching patterns in file Comparing files Variables in Windows command prompt Piping Input and Output Redirection View all processes and tasks killing tasks scheduling tasks Network commands System hardware commands
Variables in windows command promptThere are 2 types of variables.
- User defined
- Environment variables
Creating user defined variablesWe can create new variables using set command.
To display the value of variable, you can use below command.
set <variable-name>=<value> set browser=chrome
For example – to view the variable “browser”, you can use below syntax.
Viewing all environment variablesYou can use “set” command to view all environment variables in Windows Command Prompt. Note that set command will shows user defined variables as well. Some of the important environment variables are given below.
Web development and Automation testing