Pasting into a Windows 2000 cmd window

Did you know that if you right-click on a cmd.exe window in Windows 2000, it pastes the contents of the clipboard? If you didn’t, then this is dead useful—a lot easier than bringing up the menu and saying Edit | Paste. If you did know, why the hell didn’t you tell me? Would have probably saved me, like, a whole day over the last few years.

9 Responses to “Pasting into a Windows 2000 cmd window”

  1. We didn’t know you cared ;-)

    I used it a couple of years ago when I had to teach mysql on the windows command line. 

    You wouldn’t believe how much harder command line stuff is without bash ;-)

    sparkes
  2. Hell yes. No “tail” to watch a log file. No “sed” to change some text. At least the 2K cmd.exe windows default to insert mode, rather than bloody overstrike. I mean, who the hell uses overstrike mode?

    sil
  3. And you know what?  XP goes back to the crappy old way of DOS and it is a right pain.

    Seen as you didn’t know this, you might not know about tab completion on win2k? 

    http://c2.com/cgi/wiki?TabCompletion

    Paul
  4. Ah, tab completion I do know about, even if it’s a crap implementation of tab completion and it only works for files (not commands on the path, etc). While the Linux GUI desktop inches closer to Windows, the Windows command line inches closer to Linux.

    sil
  5. If you highlight some text in the command window you can press enter to copy it, rather than going through the long way.  Dunno if you know (or should that be knew?) this…

    fizz

    fizz
  6. Yep, knew about the enter-to-copy thing too. Although copying is rectangle-based, not stream-based, which is really annoying.

    sil
  7. If you have the mouse to hand to highlight it is quicker to right click and right click again to copy and paste.

    Anyway, I use cygwin cos I was fed up with typing ls and getting an error. :)

    Paul
  8. doskey ls=dir $*
    :-)

    sil
  9. just use cygwin, edit your %path% and you will have ls! and grep! and …!

    pascal

Leave a Reply