[python-win32] Programmatically capturing the text in a cmd console, for a program that has completed execution

Tim Roberts timr at probo.com
Mon Oct 30 22:13:41 CET 2006


Tony Cappellini wrote:

>
> In Windows XP, after a program has completed it's execution in a cmd
> console...
> Is there a way to *programmatically* capture the text that is in the
> scrollback buffer?
>
> I usually set my buffers to 10K lines or more, so there is a lot of
> text I'd like to capture.
> I want to do this programmatically, as opposed to using a mouse to
> mark and copy.


Nope.  All of that is internal to cmd.exe and the CSRSS service that
runs console processes.

If this is an issue for you, you might consider "Take Command" or "TCI"
from the makers of "4NT", www.jpsoft.com.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list