7 Cool Useful Command Prompt Tips You May Not Know

by windowsiso on September 4, 2012

We do love Command Prompt, don’t we? If so, why not learning another set of tips and tricks that you may not know to get more out of it? Let’s take look at them.

Tip #1: F7

If you think using Doskey to check the command history is cool, this is even cooler. Simply press F7 and a history of the commands you have used in the same session pops up right in the middle.

Command Prompt - F7

Tip #2: Mode to adjust the size of CMD window

Very useful when the output characters extends beyond the 80 characters.

Syntax: mode [width], [height]

It’s hard to have a nice screenshot to demonstrate, but type in mode 120, 25 in the Command Prompt to see what happens.

Tip #3: Color to change the default color of CMD

Syntax: color [attr]

The color attr are specified by 2 hex digits, the first one presents to the background while the second one responses to the foreground. Each digit can be found by simply typing color /?

color fc

Command Prompt - color fc

Tip #4: Tree to show off the folder structure

Syntax: Tree [drive:][path] [/F] [/A]

By default, it graphically displays the folder structure of a drive or folder. The switch /F will list the files in addition to each folder.

Previous post:

Next post: