Logo Background

Copy and paste in a Windows Command Prompt

  • Sometimes you may need to enter a complicated or long command into a Windows Command Prompt (i.e. DOS prompt). Re-typing the command can be a cumbersome process, with high potential for error through mistyping the command. However, it is possible to paste text into a Command Prompt. First, copy the text from the source using the usual method to copy text (e.g. CTRL-C). Then in the Command Shell, click on the window icon (in the top left-hand corner of the window) and select ‘Edit’ > ‘Paste’. This will paste the text into the Command Prompt window, at the position of the prompt. You can also copy text from the Command Prompt window. You will first need to select the text to copy. Click the window icon and select ‘Edit’ > ‘Mark’. Now, drag and highlight the text you wish to copy. Once the text has been highlighted, go to the window icon then ‘Edit’ > ‘Copy’. You can now paste the text to the destination.

Leave a Comment
Hi there. If this is the first time you are posting a comment it will not appear immediately, but needs to be approved. This is necessary in order to combat comment spam. However, once you have submitted a comment (which is subsequently approved) you do not need to go through this process again - the site remembers who you are and auto-approves your comments. Nifty eh? Anyway, sorry about the inconvenience that this may cause for your first comment post.