Skip to main content

10 Brilliant Command Prompt (CMD) Tricks You Probably Don’t Know About





cool-command-prompt-tricks
              Here are some great tips you can use to make yourself comfortable while working with the Command Prompt. First things first, the shortcut for Command Prompt is cmd and that’s all you need to type in the Run box or the Start search in order to bring it up. Now on to the cool tricks, which might be known ones for the geeky ones among you, but on the other hand, have the potential to incite the a-ha moment for many other everyday computer users among you. Let’s roll, shall we?

1. Open Command Prompt in a Folder

When you open the command prompt, it opens up in either User or System folder depending upon whether you ran it as administrator or not. Now the thing is, if you want to execute a file in any particular folder, you would have to use the change directory(cd) command to navigate to the folder which can be a problem if the directory is nested way too deep.
OPEN COMMAND PROMPT HERE
To ease things you can open the folder in your Windows Explorer, hold Shift key when you right-click in the folder and select Run command window here  to directly open the CMD prompt with the path to that folder directly.

2. Enable QuickEdit for Easy Copy/Paste

One thing I miss the most in Command Prompt is the ability to easily copy and paste text using the conventional Windows hotkeys. Normally, one would have to use the right-click context menu options to copy and paste text, but if you enable QuickEdit, you can do them using simple shortcuts.
quickedit
To enable the QuickEdit mode, right-click on the Command Prompt Title Bar and select Properties. In the Properties Window under the Option Tab enable QuickEdit Mode. That’s all; you can now quickly select text by dragging your mouse pointer. Pressing the enter key on the selected text will copy the text to the clipboard, and a simple left click would be enough to paste the text.

3. Run Command Prompt as Admin

Many commands require you to run command prompt as administrator. When you search for CMD in Start Menu, other than selecting Run as administrator from the right-click menu, you can simply press Ctrl+Shift+Enter to open it with admin privileges. This trick will work for all the programs installed on your system.

4. See Command History

You can see last used commands in a session using the navigation buttons, but if you would like to see a list of all the commands, you can get it by pressing the F7 button.
f7
Alternatively, you can use the command doskey /history  to list these commands in the command prompt itself.
doskey history

5. Change Command Prompt Looks

white CMD
Are you bored with the conventional black-and-white looks of the command prompt and would like to paint it different? We have already covered a guide on how you can customize your command prompt which you can refer to make the changes.

6. Copy Commands Output to Clipboard Directly

Sometimes one might want to copy the output from a command to clipboard, like at times when you get an error, and you want to paste the exact error in email or while chatting with someone.
To store a command output to a clipboard add the command | clip at the end of the command. For e.g. Dir /p | clip

7. Drag and Drop Files to Change Path

If you are already in command prompt, and you want to copy the exact path to a folder or file to run the file or change the present working directory, you can simply drag and drop the file or the folder on the command prompt.
The path of the dropped file or folder will show up in quotes.

8. Run Commands Simultaneously

You can put && between two commands and execute them one after another. The command on the left will execute first followed by the command on the right of the double ampersand.

9. Get Help for Command

help
Well let’s say you know about a command, but you are not sure how it works. Not a problem, all you need to do is suffix the command with /?  and execute it. If the command is valid, the command prompt will give you all the information related to it.

10. Watch Star Wars in ASCII

star wars
For all my nerdy friends who are diehard fans of Star Wars, you can actually watch the Star Wars Episode IV movie in the command prompt. Though it would be in ASCII, it will be fun. To start the movie, open command prompt, type in telnet towel.blinkenlights.nl. and press enter.

Comments

Unknown said…
only work for xp not windows 7and above
Unknown said…
overall performance is nice.

Popular posts from this blog

Idea Smart Wifi 3G Dongle To Offer Blazing Fast Internet For Home Or Office Users

                              Committed to catalyzing mobile broadband penetration in India, India’s 3rd largest and fastest growing mobile operator, Idea Cellular, has launched Idea Smart Wifi, a 3G Wifi dongle which offers fast and reliable internet connectivity for home users, SOHO (Small Office Home Office) and business professionals. Idea 3G Smart Wifi enables internet sharing with as many as 10 devices simultaneously such as laptop, handset, tablet, game player, digital camera, music player etc. Smart Wifi is a convenient option for small business enterprises, entrepreneurs and other professionals for their mobile broadband requirements for multiple devices. Idea 3G Smart Wifi dongle offers 21.6 Mbps download and 5.76 Mbps upload speed and is equipped with an inbuilt Wi-Fi antenna which can also run on minimal power sources like laptop or car charging point to turn the device into a Wi-Fi Hotspot. The Idea 3G Smart Wifi is truly plug n play device, compatible with all major

Why to learn PHP?

PHP is basically an HTML-embedded scripting language that helps in writing dynamically generated webpage. The files underPHP comprise HTML tags, text and scripts witha file extension of “.php”. With the help of PHP, youcan create login pages, forums; design a form, and surveys, to name a few. Though now-a-days people use PHP for the development of websitesand web-applications, few of them still doubt about its capabilities. Here are some facts on why PHP should be chosen over other scripting languages.*.Easy To Use: The scripting language, coding and architecture are easy and simple to use in PHP in comparison toother programming languages.*.Technologically Advanced: PHP supports Linux, MySQL and Apache and is the base for several technologies like, CakePHP and Joomla.*.User-friendly: PHP offers the fast accessibility to the websites, thus immediately calling the databases. It has incredible speed which makes it different and popularamong the users. Moreover, the websites created using