easy way to copy to clipboard from windows command prompt
I often type long command lines in the windows command prompt. When I get a failure I want to copy that command li开发者_如何学Pythonne 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?
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.
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.
精彩评论