Copy & Paste in a Dos box (was: Pyhton script to call another program)

Dave Angel davea at
Wed May 6 20:15:11 EDT 2009

Mensanator wrote:
> On May 6, 3:46 pm, Dave Angel <da... at> wrote:
>> Mensanator wrote:
>>> <snip>
>>> And when prompted, do "(.) modify shortcut that started this window"
>>> After which, you can dispense with the menus (except when pasting),
>>> just select the text and hit <enter>.
>> To paste into a DOS box, once Quick Edit is enabled, use Right-Click.  
>> They keystrokes will be sent to the command editor.  Note that the
>> interpretation is rather literal, so be careful if copy/pasting more
>> than one line, or a line that was wrapped.
> Well I'll be dipped. Didn't know you could do that.
> Of course, since I learned how to call programs from the
> script and capture their StdOut, I don't have much call for
> cut/paste from dos windows. Hopefully, I'll remember that the
> next time I need it.
As long as we're in Quick Edit mode, another trick is that you can 
double-click on a "word" in a DOS box to select it and copy to 
clipboard.  Obviously it isn't always the exact string you want, but 
sometimes it beats dragging the mouse over the text.

More information about the Python-list mailing list