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

Mensanator mensanator at
Wed May 6 17:49:17 EDT 2009

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.

More information about the Python-list mailing list