Today
we are going to learn some advanced commands as we have already learnt the
basic commands in previous blog and now we can learn some advanced commands
to perform some more smart tasks using CLI (Command Line Interface). we will be
learning color, ipconfig, wmic, and some other commands like this. So let’s
look at them one by one.
color – color
command is used to change and customize the color of command line window. There
are 16 color codes (alphanumeric codes) from [0 to 9] and [A to F]. Each color
code means a color and the syntax for writing the color command is pretty
straight-forward.
We can simply use the command as ‘color xy‘ ,
here xy is known as the attribute f color command.
Below are the color codes listed :
0 = Black
|
8 = Gray
|
1 = Blue
|
|
2 = Green
|
A = Light
Green
|
3 = Aqua
|
B = Light
Aqua
|
4 = Red
|
C = Light Red
|
5 = Purple
|
D = Light
Purple
|
6 = Yellow
|
|
7 = White
|
F = Bright
White
|
So using this color code we can give any
color to the command window, like if we want to have black background and light
yellow color then we can use color "0e".
In xy, here x is the background color and y
is the color of word.
To see the color code just type ‘color ?’ or
‘color help’ or ‘color /?’ on the command window. See in the image below.
· ipconfig – ipconfig
command is by default, used to display ip address, subnet mask, and gateways
for adapters connected to the device. There are many other options available
for ipconfig command like all, renew, registerdns, showclassid, setclassid
adapter [classid], showclassid adapter and many more and syntax is very easy to
use that is as ‘ipconfig options’ or you can simply write the term ‘ipconfig’
in this case it will show all the ip, subnet masks and adapters connected to
the device. Below image shows the interface using the ipconfig command.
· wmic – wmic
( windows management interface console) command is very useful as it deals with
all the options related to the window management interface. There are options
like managing role, privileges, user, Authentications and many more. you can
get all the options using the command ‘wmic options’, where options can be
found from the above command. Also see the image below.
· start – start
command is used to launch any application directly just you need to know name
of the software installed. There are some basic applications which come
installed within the windows itself like MS Paint, notepad, etc.
We can also launch the manually installed
software but we need to know the name of the binary like in case I want to open
chrome then I can open it using the command ‘start chrome’. ‘start notepad’
command is used to open the notepad, ‘start mspaint’ command is used to open
the Microsoft paint software and use ‘start cmd’ to open the another command
window.
Observe the image below..
*Note:
1)
The start command can be used to open a website also for this this we need to
write the command ‘start https://www.example.com’ replace
example.com with your website and also keep in mind that the website will be opened
in the default browser, like if you set chrome as default browser then chrome
browser will open the website otherwise whatever you set as your default
browser will open the link.
2)
We can find help regarding the options and attributes of a command using the
command help, i.e.
using the syntax ‘commandname help’ or ‘commandname ?’ or ‘commandname /?’, it
will show all the available attributes for the command just replace the
commandname with any relevant command of command prompt.
We hope that you like our content..Any comments or feedback are always welcome.


0 Comments
If you have any doubts, please let me know.