5 Really Cool Uses For The Windows Command Prompt

command-prompt-window.png

While most computer users would agree that the graphical user interfaces (GUI) was the best thing to have happened to the computer operating system, there are a few things that are done best using commands. Windows has a nifty little Command Prompt (previously known as MS-DOS) that lets users turn into keyboard-whacking ninjas. We at TheDailyBuggle like using our Command Prompt every now and then to get things done faster than the Windows GUI. Here’s a short list of the coolest uses for Command Prompt commands.


All of these commands require that you have Command Prompt window opened. To launch Command Prompt, go to Start > Run (or hit the Windows Key + R), type cmd and press Enter. Alternatively, you could also go to Start > All Programs > Accessories > Command Prompt.

ipconfig

In an increasingly inter-connected world, it’s only too important to have devices that are connecting to networks properly. If you ever run into any network trouble, you can count on this little trooper to give you all the information you need about all the network adapters available on your computer.

Type in this Command Prompt command: ipconfig /all

command prompt command

The Command Prompt command above will list the present state of all network interfaces on your computer. You can then use this information to talk to a tech specialist and diagnose or troubleshoot your issues.

assoc

I’m sure that you’d definitely come across a file extension that’s unknown to you. It’s one of the most common problems faced by computer users (get the solution here). Having said that, the Command Prompt provides a really simple way of checking which extension belongs to which application.

Type in this Command Prompt command: assoc [extension]

Example: assoc .docx

command prompt command

Ideally, this will show you a single line output specifying the application to be used to launch this file with the unknown extension.

color

The color command is used to (surprise, surprise!) change the default colors of your Command Prompt window. This can be particularly useful when you are having readability issues in Command Prompt, or when you just want to have your two minutes worth of fun. The color command needs to be used with a two hexadecimal digits as arguments.

Type in this Command Prompt command: color [background][foreground]

Example: color 0A

command prompt command

As you can probably guess, the first digit is used to set the background color and the second one is used to set the foreground color. You can see a list of potential color codes by typing color /?.

Remember though, that the color change is not applicable across multiple sessions of the Command Prompt.

?

This is more of a command line switch than a command itself. But the amount of utility it provides makes it important enough to be featured as a dedicated command. This switch will print the entire documentation associated with a particular command in the Command Prompt window.

Type in this Command Prompt command: [command] /?

Example: dir /?

command prompt command

Now, whenever you come across a command you not familiar with, you know what to do.

prompt

This is another one of those prompts that you’d probably use more to please your geek ego than for any other practical uses. Prompt merely changes the prompt to any text you specify. So in place of c:\abc\xyz, you might now simply have $$.

Type in this Command Prompt command: prompt [pattern]

Example: prompt TheDailyBuggle\

command prompt command

The commands covered here are only the tip of the iceberg. The more you get into the world of Command Prompt, the more exciting and powerful it gets for you as a user. Let us know what your favorite uses and commands for Command Prompt are in the comments.

About author
Abhigyan Banerjee is a software professional with a keen eye for tech. At most times, he's hunched over a keyboard, blazing through work. At others, you'll find him hacking through his Android, reading and writing tech. Follow him on Twitter (@abhigyanb) or on Facebook.
8 total comments on this postSubmit yours
  1. Neat! An intrinsic command I had never used – assoc. Thanks!

    • Glad it was of use to you. Keep reading :)

  2. you feel geeky when u start doing such things as i am although i’m not, bur the command which i like are systeminfo, net statistics | find blah blah blah , nbstat (which tells u who’s Ip is this means it will tell u the name of accounts so u can guess who’s ip is this ) , tasklist, killtask, and many many more

  3. you feel geeky when u start doing such things although i’m not, bur the command which i like are systeminfo, net statistics | find blah blah blah , nbstat (which tells u who’s Ip is this means it will tell u the name of accounts so u can guess who’s ip is this ) , tasklist, killtask, and many many more

  4. hi,

    Very nice intension and bright information with cool explanation but all i wanna know is the 5th trick.i dont know what is the function of this so if u can plz tell me why it is used?

  5. Hello!

  6. Hello!

  7. Hello!

Submit your comment

Please enter your name

Your name is required

Please enter a valid email address

An email address is required

Please enter your message

Tip Us!

Read an interesting story elsewhere and would like to see TheDailyBuggle cover it? Got a good tip you'd like to share with us? Tip us by sending an email to the Editor-in-Chief.

TheDailyBuggle © 2014 All Rights Reserved

Designed by WPSHOWER

Powered by WordPress