Windows Command Prompt Tool, and many of its commands, seem to be boring or even relatively useless at first glance, but whoever has used a command prompt can tell you, there is a lot to love!

I guarantee that many of these command prompt tricks and other command prompt hacks will encourage you about the commands of many monotonous command prompt.



Some of these command prompts are special features or fun usage for tricks and hack command prompts, while with some other CMD commands you can only do simple or relatively unknown things.

Then come on! Open a command prompt and then browse through these 15 super-cool command prompt hacks.

1) Use Ctrl-C to Abort a Command


Any command running on your track can be stopped with this Ctrl-C command.

If you did not actually execute the command, you can delete whatever you have typed with the back space of the keyboard, but if you have already executed it, then press Ctrl-C to stop it. Can.

2) View a Command

Is there any such command run that creates a lot of information on the screen? Like dir command This information is difficult to see on the same screen at the same time.
There is a way for this, so whatever information is produced you are shown in a page, or a line.
To do this, simply type the command, for example dir command, and then type more command with pipe character.

for example-

dir / p


When this command is executed, many results will be generated for pages that you expect from the dir command, but the more commands will stop every page of the results in the bottom of the page.
Just press the spacebar to see the next page or press enter to push one row at a time.

3) Run Command Prompt as Administrator Automatically

To run many commands in Windows, you need to run it as run as administrator.

For this you have to always right-click any command prompt shortcut and select Run as administrator.

But if you always need to run a command prompt with Run as administrator, creating a shortcut for it can be a big time saver.






To complete this command prompt trick, simply create a command prompt shortcut on the desktop, in the shortcut properties, check the Run as administrator box on the Advanced button.

4) Become a Command Prompt

The fact is that function keys actually do a lot in the command prompt and it is probably one of the very good secrets about this tool:

F1: Pastes the Execute Command (Character by Character)

F2: Past Execute Command (from the entered character)

F3: Paste the last execute command

F4: Deletes current current prompt text from the entered character

F5: Recently pastes Execute commands.

F6: Paste ^ z in the prompt.

F7: First Execute makes a selectable list of commands

F8: Recently Execute Command (Cycle)

F9: F7 asks for paste from the list to the number of commands

5) Hack the Prompt Text

Did you know that the prompt at the command prompt is automatically customize ?
Instead of C: \>, you can set prompts for any text, including the time, the current drive, the Windows version number (such as in this example image), you can name it.
A useful example-
prompt $ m

6) Get Help for Any Command

Believe it or not, the help command does not provide support for every command prompt.
However, any command /? Option can be suffixed with, which is commonly called the help switch, to display detailed information about the syntax of the command and often some examples.

for example- dir /?


7) Save a command

An incredibly useful command prompt is a trick redirection operator, especially> and >> is the use of operators.

These small characters allow you to redirect the output of the command to a text file, giving you a saved version of any of the commands given in the command prompt window.

For example,
systeminfo> D: \ mycomputerinfo.txt

Execute it to save the information provided by the systeminfo command in that file.

8) View a Drive's Entire Directory Structure

One of the smallest commands is the tree command. With the tree, you can create a map of directories on a drive on any of your computers.

Execute the tree command from any directories to see the folder structure under that directory.

With so much information created with this command, it is a good idea to export tree results to a file so that you can actually see it.

For example, tree / a> D: \ export.txt, all the folder structures in the current directory from the command directory will be exported to a NotePad file on your PC's D drive.


9) Customize the command

Are you tired of the same command prompt title bar text? No problem, just use the title command to write whatever you like here.
For example, suppose your name is Samir, and you want to type your name on the title bar of the command prompt, then type the command and enter-
title Property of Sameer

Your name will now appear immediately on the title bar of the command prompt.

10) Copy Text From the Command Prompt


As you know or do not know, copying text from the command prompt is not as easy as copying it from other programs.

However, what if you want to copy a small part of the text on the clipboard? It is not very difficult but it is not very intuitive:

Right-click anywhere in the Command Prompt window and choose Mark.

Highlight your left mouse button with the one you want to copy.

Press Enter or right-click it once




11) Open Command Prompt From Any Location

If you have ever worked for a long time in a command prompt, then you know that repeatedly executing the cd / chdir command can be frustrating to get into the root directory.

Fortunately, there is a super easy command prompt trick that will open the Command Prompt window in whatever folder you see in Windows.

All you have to do is navigate to that folder from where you want to start working in the command prompt. While you are there, hold Shift while you right-click anywhere in the folder.



12) Drag and Drop

Most command prompt commands require you to specify a full path for files or folders, or options, but typing a long path can be frustrating, especially when you want to leave a character and start over Are there.
For example, in Windows 10, the Accessories group's path to the Start menu is C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ Accessories. Who would want to type it manually?
Fortunately there is a command prompt trick that makes it very easy: drag and drop.
Just navigate to the file that you want the path in file / windows explorer. Once there, drag that folder or file to the command prompt window. Now it will be magic and the full path will come in the command prompt window.

13) Shut Down or Restart Another Computer

In the business system administrators do this all the time due to various reasons, but you can also shut down or restart any other computer on your computer from the command prompt of your computer.

The easiest way to shut down the computer remotely, to open the remote shutdown dialog shown here, by typing this command, type at the command prompt -

shutdown / i

Now a dialog box of Remote Shutdown will open. Enter the name of the remote computer here), choose what you want to do (restart or shutdown), select some other options, and then click OK.






14) Access Previously Used Commands with Arrow Keys


This is another great command prompt trick. Many times you have to re-use the previously exempt command. So will you re-type that command? No. You have to use the arrow key on your keyboard.

When you press up and down arrow keys, you can bicycle in the previously exited command.
It may not look interesting, but there are many situations where arrow keys become a lot of time saver.
Consider this example: You have typed 50 characters of the command and then try to execute it and then you know that you have forgotten one character. No problem, just press the up arrow and the whole command will enter the command prompt window automatically.

15) Watch Star Wars Episode IV


Yes, you have read it correctly, you can see the full Star Wars episode IV movie ASCII version in the command prompt window!




Just open the command prompt and
telnet towel.blinkenlights.nl
Execute the command. The film will start immediately.




If this does not work then you have to first enable telnet on your PC.
For this, first type this command at the command prompt-
pkgmgr / iu: "TelnetClient"

Now restart your PC. And then type this command and enter-
Telnet Towel.blinkenlights.nl