4

I often type long command lines in the windows command prompt. When I get a failure I want to copy that command line to the clipboard so I can use it in my debugger.

Using Edit->Mark is really inconvenient when the command line is more than one line. At easy way to do copy the command line to clipboard?

2 Answers 2

8

doskey /history | clip is a start. You could write a batch file to pull just the last line out of the history if you wanted to be a bit more accurate.

0

Using Console2: http://sourceforge.net/projects/console/ you can shift+drag to make selections. Or you can go to preferences in CMD and turn on quick select mode.

1
  • I might get Console2 for its multi-tab feature. Hmm I might also just recompile it with a copy-cmd-line feature!
    – martin71
    Commented Dec 6, 2010 at 4:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.