Windows Command prompt offers a convenient way to save time. Instead of looking for an elusive icon or menu setting, you can simply type a command to get the job done. There are some practical commands that will help you to complete certain tasks faster. The command prompt is mainly used by advanced users, but it offers easy ways to change complete a variety of tasks and get access to useful information. You can view network information, change directories, or perform basic network functions. The options below can help you to take advantage on what the command prompt can offer. We will show you five shortcuts that you can use to work more efficiently.
Use F7 to View history
The most common way to go through the list of commands that you typed during a session, is using the up and down arrow keys. When you press Up, you go to the earlier commands and with Down, you move forward to the most recent ones. However, there is a more practical and faster alternative. All you need to do is to press F7, which will show you the 10 most recent commands in a simple view. This is an easier way to locate the exact command you need. Once you get the list of recent commands typed, you can move up and down and press enter on the one you need to cancel.
Copy Path on Folder Drop
This is an effective way to find a file that you need, without having to type a lengthy folder path. Simply drag the folder and drop it into the command prompt to paste the full path. You can type cd in the command prompt and then drag the folder into the command window.
Print the current directory
If you need to view the directory contents, without the file sizes and datestamps, there is a simple command that can help. If you type tree/a after the directory contents listed from dir, you will be able to see all the folders and subfolders of the current directory as a basic ASCII art print out. The output may be too long, so you can add the redirection operator to send to a text file.
Send Command Output to the Clipboard
This is an option that allows you to send results to your clipboard, instead of the command prompt window. Insert a space after any command and then type the vertical pipe ( | ), which is located in the same key as the backslash, followed by another space and “clip”. For instance, the option to send the ipconfig results to the clipboard, you would type this: ipconfig/all | clip
When you need to get help on a command because you forgot how to do something, the most practical option is to type backslash and question mark. It is incredibly simple as all you need to do is to type the command, followed by space, backslash and question mark. For example: netsh /?. This will display a list of options available and will show you what each related command does.