Hey friends,
As we all know batch programme is nothing but some line of cmd commands.
For creating Matrix in cmd using the batch file we just need to write down some line of cmd commands and save it as a batch file with ".bat" extension. So let's create something interesting.
You can Learn more interesting tricks on - www.itsupportwale.com
First of all open notepad in windows.
After that write the following few lines in the notepad or you can copy and paste it in notepad.
@echo off
color a
:a
echo %random%
goto a
As you can see in the below screenshot.
In the above code -
( @echo off ) - is used for hiding the path of the current working directory in command prompt.
( color a ) - used for changing the font color to Green.
( :a ) - used to define a starting point for the loop.
( echo %random% ) - is used to print a random garbage number on command prompt screen.
( goto a ) - is used for taking the program to the starting point "a" we defined in the 3rd line.
Now save the file as a .bat extension as shown in below screenshot -
Now run the batch file.
You can see the following output in command prompt windows.
As you can see in the command prompt random numbers are print repeatedly. Because of our loop in batch file.
Now increase the number of %random% in our batch file and save it. Let it cover the whole cmd window.
Then run the batch file and you can see the following output.
As you can see it covers all the window area.
Here is the video demonstration of this tutorial.
Thanks for watching it.
youtube video link = How to create a matrix in cmd.
Comments
Post a Comment