Showing posts with label command prompt. Show all posts
Showing posts with label command prompt. Show all posts

2021-02-08

How to Resize Batch Files and Command Prompt

While in Windows 10 you can resize command prompt windows however you want, on Windows 7 your options are much more limited, only allowing you to increase the width of the window to less than half the screen. Even though you can't resize it by dragging, you can still use commands to resize the command prompt window, or if you are making batch files and want to resize the window, you can use this simple command:

mode con cols=<width> lines=<height>

Simply replace the text between the '<' and '>' symbols with the width and height (in character width) you want respectively. You will also need to remove the '<' and '>' symbols, otherwise the code will not work. If you only want to change either the width or height of the window, you can use just the cols or lines part of the code after mode con, to just change that.

2021-02-05

How to Change the Colour In Batch Files and Command Prompt

If you have ever made batch files or used command prompt on windows, you have probably noticed that the default command prompt window is white text on a black background. If you have ever wondered if there is a way to change these colours, well yes their is thanks to the 'color' command.

To use it, simply type 'color', followed by the two digit colour code representing your background and foreground (text) colours. These digits are the hexadecimal values representing the 16 available colours to choose from, as listed below. A valid example would be to type 'color 25', to set the background to green and the text to purple.

ColourCodeColourCode
Black0 Grey8
Blue1 Light Blue9
Green2 Light GreenA
Aqua3 Light AquaB
Red4 Light RedC
Purple5 Light PurpleD
Yellow6 Light YellowE
White7 Bright WhiteF

You can get this list in command prompt by using the 'color' command followed by an invalid colour code. Something to note is that if you just want to change the text colour, you an simply use the one digit colour code for that colour, such as using 'color 2' to set the text colour to green.



Give Some Support By Subscribing on YouTube

ads

My Thoughts of FUNA's Anime Adaptations

The Evolution of Funa’s Isekai: A Retrospective on Three Anime Adaptations The Isekai genre is a staple of modern anime, but few authors hav...