Basic commands in windows command prompt

Now let us take a look at some basic commands in windows command prompt. To show all commands
> help

To get help on specific command
> help commandName
> commandname /?

To exit command prompt
> exit

To clear the output screen of command prompt
> cls

To echo the message on output screen
> echo

To display contents of a file, You can use below commands. more command will display the contents of a file one page at a time. This is just like more command in Linux. type command will display contents of entire file in one go.
> more <file-name>

> type <file-name>

To print the file, you can execute below command.
> print <file-name>

cmd command starts child command prompt. We can set the color of the window using below command.
COLOR [background][foreground]


Here are some of the color values.
08 = Black/Gray
19 = Blue/Light Blue
2A = Green/Light Green

Web development and Automation testing

solutions delivered!!