Useful copy paste technique in DOS shell
A lot of times you might have to get down to the DOS shell in order to check out something. For example you might want to check if a site is up and running or you might want to get the IP address of a site and put into your code. In DOS shell normally you cannot copy selecting text and doing a Ctrl+C. There is a simple way to do a copy paste in the DOS shell.
- First create a short cut for DOS prompt on your desktop. Right click on your desktop, select new -> shortcut, for the program location just type cmd, click away next and finish.
- Right click on the newly created shortcut and select properties.
- Select the options tab and in the Edit options section, check Quick edit mode and Insert mode. Click OK to save and close.
Now you are all set. Double click the shortcut which will open up a DOS prompt. Try executing the command, say for example,
C:/>ping www.google.com
Now just like how you would select a text on any windows application, select the IP address that is displayed using your mouse. Once you have selected, right click your mouse. That’s it, this copies the text you have selected in the clipboard. You can paste this in any of your windows applications. If you want to paste whatever you have copied within the DOS shell, then simply at the prompt right click your mouse and whatever text in the clipboard gets pasted. Try it, you will get addicted to it if you are a person who often visits DOS shell and wants information copy pasted from it.












