10 Command Prompt Secrets and Tricks (Must Know)

by Circuitalist in Circuits > Computers

17996 Views, 4 Favorites, 0 Comments

10 Command Prompt Secrets and Tricks (Must Know)

10 CMD tricks must know.png

Cool command prompt tricks every one should know

Did you know these command prompt secrets?

The Fountain

bandicam 2019-05-11 12-24-05-986.jpg

open a text document

write the following then save as with .bat extension (example.bat)

@echo off

color 0a

:loop

echo %random% % % %random% % % %random% % % %random% % % %random% % % %random% % % %random% % % %random% % % %random% % % %random% % %

goto loop

List of All Folder in a Directory

bandicam 2019-05-11 12-24-15-706.jpg

press windows key + R

or simply type 'cmd' in the search box

type 'tree'

press enter

a list of all folder and sub folder will be displayed

to change the directory type 'cd' then type the path of the directory

then type 'tree'

press enter.

Check This Video for More Details

If you liked this instructable give us a thumb and subscribe to my youtube channel

Binary Matrix

bandicam 2019-05-11 12-24-53-627.jpg

As same as we did in step one

@echo off

color 0a

:loop

echo 0 10 10 1010 1 0 00 0 1 1 1 1 0 1 0 1 0 1 0 1 00 0 1 1 1 1 0 1 1 0 10

echo 1 0 1 0 1 0 00 11 0 1 0 101 01 01 10 01 1 1 0 0 00 1 0 0 1 0 1 01 0 1

echo 1 0 1 1 01 0 1 100 1 1 1 0 0 1 10 10 0 1 0 0 1 1 00 1 0 1 1 0 1 0 1

goto loop

All Installed Drivers

bandicam 2019-05-11 12-26-12-541.jpg

in the command prompt as we did in the step 2

type 'driverquery'

press enter

a list of all installed driver in the machine will be displayed.

Help

bandicam 2019-05-11 12-26-28-235.jpg

simply type help to get a list off commands to help you.

All Running Programs

bandicam 2019-05-11 12-26-37-152.jpg

In a command prompt type 'tasklist'

a list off all running programs will be displayed.

Network Configuration

bandicam 2019-05-11 12-26-49-014.jpg

'ipconfig/all'

Every Information About the Machine

bandicam 2019-05-11 12-27-09-328.jpg

'systeminfo'

Change Title and Color of the Command Widnow

bandicam 2019-05-11 12-28-02-896.jpg

type 'title' then type the title you want example : title Circuitalist

to change the color of the background and the font color type 'color' then the color code (example: color 0a)

0 black

1 blue

2 green

3 cyan

4 red

5 magenta

6 yellow/brown

7 white

8 gray

9 bright blue

A bright green

B bright cyan

C bright red

D bright magenta

E bright yellow

F white

Want to Get Deeper Into Batch File and Cmd?

Battery Status and Health

bandicam 2019-05-11 12-28-45-447.jpg

type

'powercfg /batteryreport'

a path will be displayed

follow the path to find a .html file

open it.

---------------------------------------------------------

thank you for reading this instructable

please give us a like

and give my youtube channel a visit, subscribe if you like my content.