Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How do I Paste into a Windows XP Command Shell?

Using a DOS window under Windows ME there’s a handy
“paste” clipboard appearing with some other icons in the DOS window title bar.
Is there any way to get this in Windows XP? I haven’t been
able to find any mention of it but may be overlooking
something obvious.

You came to the right place. I live in the Windows XP command
shell. My (DOS) roots must be showing.

Anyway, the icons may be gone, but the functionality is most certainly
still there.

Become a Patron of Ask Leo! and go ad-free!

I don’t believe that there’s a way to actually get the icon back, though
it wouldn’t surprise me if there were a third party add-on that could add
something like it.

But Copy, Paste and a few other old friends are all still there on the system menu.
Click on the upper left icon on the command shell window, referred to as the
system menu, and along with Move, Size, and so on, you’ll see a sub menu
called Edit. Click on that, and you’ll find Copy, Paste and other
clipboard related commands. Here’s a screen shot of what I mean:

CMD Shell System Menu

If you’re so inclined, there are good things buried in the Properties item
as well that will let you control the look, feel and some of the behavior of the
Command Shell.

Subscribe to Confident Computing! Tech problem solving & safety tips & a weekly confidence boost in your inbox every week.

I'll see you there!

10 Reasons Your Computer is Slow

Slow Computer?

Speed up with my special report: 10 Reasons Your Computer is Slow, now updated for Windows 10.

NOW: name your own price! You decide how much to pay -- and yes, that means you can get this report completely free if you so choose. Get your copy now!

Posted: March 25, 2005 in: ask-leo.com
Shortlink:
« Previous post:
Next post: »

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and "retired" in 2001. I started Ask Leo! in 2003 as a place to help you find answers and become more confident using all this amazing technology at our fingertips. More about Leo.

14 comments on “How do I Paste into a Windows XP Command Shell?”

  1. Probably the quickest way to get to this menu is to hold down the ALT key, and hit the spacebar. So, for paste, it’s ALT+Space, E, P (E for edit menu, P for paste command). If you do it enough, it becomes second nature. 🙂 Especially in a command prompt, the mouse isn’t always the quickest method.

    Reply
  2. I ping for a living & I prefer to set my cmd’s Properties to Enable Quick Edit which pastes with a simple right mouse click in the window.

    Reply
  3. Could you go over that Enable Quick Edit?

    I’ve tried it in a quick edit enabled command prompt, and in a Norton Commander for DOS box, but nothing gets pasted on a right click.

    The alt-space-edit-paste routine works as usual.

    I must be missing something blindingly obvious!

    Reply
  4. This works fine if you’re in a command shell window, but what if you’re running the dos program full-screen? Is there then a way to copy and paste between the dos program and XP aps? Maybe like winoldap’s int 2F under win 9x?

    Reply
  5. I believe if you type ALT+Space you’ll get the system menu, which will allow you to select the entire screen and copy it. (It may take you out of the full screen window.)

    Reply
  6. Just in case it’s useful to anyone: I’ve found a neat program called Tamedos which among other things gives you the option to use ctrl-c and ctrl-v to cut and paste in a Dos window under XP, as well as smoothing out various other aspects. 30 days evaluation. Registration is $20 — worth it to me. http://tamedos.com

    Reply
  7. Many thanks. I had to paste a 4-line long command into the shell!
    Is there a way to use the keyboard instead?

    Reply
  8. —–BEGIN PGP SIGNED MESSAGE—–
    Hash: SHA1

    Just use the keyboard shortcuts for the system menu:

    ALT+Space
    E
    P

    Does the paste.

    Leo

    —–BEGIN PGP SIGNATURE—–
    Version: GnuPG v1.4.7 (MingW32)

    iD8DBQFIWW6JCMEe9B/8oqERAhY0AJ4sMgN3KRwC7wRmOtDFiJ8W8KDVcACeIrg0
    5chXyU/T/muciRuNWTRSTfc=
    =Sdl1
    —–END PGP SIGNATURE—–

    Reply
  9. Thanks a Billion! I am very experienced, but self-taught; and I was stuck with a “file”/non-file thing on my XP x64 Desktop for a few months. Finally I thought to search the error message (duh!, but guess I was lazy at first and my desktop was messier then anyway).

    Well, I am posting this for thanks and two other reasons – for all reading with
    this kind of issue:

    1 – for me the file ended with a space; and not a period; and thought I would spread the word this still worked!

    2 – Also, I read above some had problems with copy and paste. I too had to
    re-learn how to do this, but you should be able to do it simply with the Windows prompts (well, at least mine, see version above). I use the portable one from portableapps.com, and also discovered it to be tricky. It seemed to keep “forgetting” or something, what I had copied into the clipboard (which was the entire command written in a text editor to include everything (of course)). I had to carefully left click the very top left of the prompt window to bring up the context menu which included Edit->Paste. Maybe mine was acting up for some other reason, but I think this may help others; keep trying.

    So happy that “file” is gone!

    Reply
  10. re. CMD window cut and paste.
    Try under CMD window menu “Properties” –> “Options” Tab and and enable “Quick Edit Mode”.
    This gives you Paste on mouse Right-Button and Copy is by mouse drag and Return.

    Reply
  11. how to copy one file & past it to
    another plase in cmd ?

    You don’t “copy/paste” in the command prompt. Look at the help for the “COPY” command, that’s the command used to copy files.

    Leo
    06-Jan-2013
    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.